This commit is contained in:
Camotoy 2020-12-27 11:08:48 -05:00
parent 956d264c3e
commit 790c695b27
No known key found for this signature in database
GPG Key ID: 7EEFB66FE798081F
1 changed files with 1 additions and 0 deletions

View File

@ -462,6 +462,7 @@ public abstract class InventoryTranslator {
}
case DESTROY: {
// Only called when a creative client wants to destroy an item... I think - Camotoy
//TODO there is a Count here we don't use
DestroyStackRequestActionData destroyAction = (DestroyStackRequestActionData) action;
if (!session.getGameMode().equals(GameMode.CREATIVE)) {
// If this happens, let's throw an error and figure out why.