From 9659c65121e21e30f843c04025637f13b88ac613 Mon Sep 17 00:00:00 2001 From: Qiuzhizhe <42761326+quizhizhe@users.noreply.github.com> Date: Sun, 5 Feb 2023 06:40:19 -0800 Subject: [PATCH] Fix BlockLegacy::getBlockItemId() --- LiteLoader/Header/MC/BlockLegacy.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LiteLoader/Header/MC/BlockLegacy.hpp b/LiteLoader/Header/MC/BlockLegacy.hpp index 5bf8bcb..f973fe1 100644 --- a/LiteLoader/Header/MC/BlockLegacy.hpp +++ b/LiteLoader/Header/MC/BlockLegacy.hpp @@ -25,8 +25,8 @@ public: inline int getBlockItemId() const{ //ItemStackBase::init(ItemStackBase *this, const struct BlockLegacy *a2, int a3) Line14 - int id = dAccess(this,134); - if(id < 0x100u) + unsigned int id = dAccess(this,268);//mID + if(id < 256u) return id; else return 255-id;