Prevent people from putting shulker boxes in shulker boxes.

This commit is contained in:
Brianna O'Keefe 2019-02-27 14:39:29 -05:00
parent 85ac8742c9
commit 55e308a3d9

View File

@ -219,8 +219,9 @@ public class HopHandler {
}
return true;
}
if (destinationBlock.getType() == Material.BREWING_STAND) {
if (destinationBlock.getType().name().contains("SHULKER_BOX")) {
if (item.getType().name().contains("SHULKER_BOX")) return false;
} else if (destinationBlock.getType() == Material.BREWING_STAND) {
BrewerInventory brewerInventory = (BrewerInventory) destinationInventory;
int maxSize = newItem.getMaxStackSize();