mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-20 04:28:04 +01:00
Merge branch 'main' into upstream-merge
This commit is contained in:
92 files changed
+1619
-60
No files matched your search
@@ -386,6 +386,7 @@ bool ServerPlayerGameMode::useItem(shared_ptr<Player> player, Level *level, shar
|
||||
player->inventory->items[player->inventory->selected] = itemInstance;
|
||||
if (isCreative())
|
||||
{
|
||||
//if (!(Item::items[itemInstance->id]->getBaseItemType() == 7 || Item::items[itemInstance->id]->getBaseItemType() == 8 || Item::items[itemInstance->id]->getBaseItemType() == 9 || Item::items[itemInstance->id]->getBaseItemType() == 10))
|
||||
itemInstance->count = oldCount;
|
||||
if (itemInstance->isDamageableItem()) itemInstance->setAuxValue(oldAux);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user