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

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.