spawn egg fix

This commit is contained in:
Brianna 2019-08-11 13:35:06 -04:00
parent 59607a5334
commit 82ac0044f6

View File

@ -53,10 +53,8 @@ public class SpawnerListeners implements Listener {
|| !event.getAction().equals(Action.RIGHT_CLICK_BLOCK))
return;
if (event.getItem() == null) {
event.setCancelled(true);
if (event.getItem() == null)
return;
}
Material itemType = event.getItem().getType();
Block block = event.getClickedBlock();