mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-30 20:13:31 +00:00
FIX: The end of item cheating
This commit is contained in:
@@ -290,3 +290,7 @@ bool ItemInstance::isArmorItem( const ItemInstance* instance ) {
|
||||
|
||||
return item->isArmor();
|
||||
}
|
||||
|
||||
bool ItemInstance::isBlock(const ItemInstance* instance) {
|
||||
return instance->id < 256;
|
||||
}
|
||||
@@ -81,6 +81,8 @@ public:
|
||||
|
||||
static bool isArmorItem(const ItemInstance* instance);
|
||||
|
||||
static bool isBlock(const ItemInstance* instance);
|
||||
|
||||
/**
|
||||
* Checks if this item is the same item as the other one, disregarding the
|
||||
* 'count' value.
|
||||
|
||||
Reference in New Issue
Block a user