remove redundant ItemStack.EMPTY check (#94)

This commit is contained in:
UpcraftLP 2019-02-19 13:53:19 +01:00 committed by Adrian Siekierka
parent 530f40e04b
commit 71ab75d47c

View file

@ -34,8 +34,8 @@ public interface ClientPickBlockApplyCallback {
for (ClientPickBlockApplyCallback event : listeners) {
stack = event.pick(player, result, stack);
if (stack == ItemStack.EMPTY || stack.isEmpty()) {
return stack;
if (stack.isEmpty()) {
return ItemStack.EMPTY;
}
}