Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added extra interactable materials to the list #216

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,33 @@ private boolean isInteractable(@Nonnull Material material) {
// We cannot rely on Material#isInteractable() sadly
// as it would allow the placement of this block on strange items like stairs...
switch (material) {
case CRAFTING_TABLE:
case FURNACE:
case SMOKER:
case BLAST_FURNACE:
case JIGSAW:
case JUKEBOX:
case ENCHANTING_TABLE:
case ITEM_FRAME:
case LOOM:
case CARTOGRAPHY_TABLE:
case GRINDSTONE:
case SMITHING_TABLE:
case BELL:
case BEACON:
case ANVIL:
case BREWING_STAND:
case CAKE:
case CHEST:
case HOPPER:
case TRAPPED_CHEST:
case HOPPER:
case ENDER_CHEST:
case CAULDRON:
case SHULKER_BOX:
return true;
default:
return material.name().equals("BARREL") || material.name().endsWith("_SHULKER_BOX");
return material.name().equals("BARREL") ||
material.name().endsWith("_SHULKER_BOX") ||
material.name().endsWith("DOOR") ||
material.name().endsWith("BED");
}
}

Expand Down