mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-09-30 00:27:28 +02:00
Prevent people from putting shulker boxes in shulker boxes.
This commit is contained in:
parent
85ac8742c9
commit
55e308a3d9
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user