Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
Prevent firework abuse with Minecraft 1.16 polished blackstone buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Jun 25, 2020
1 parent 43a5116 commit 1c9a1bf
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ private boolean canAccommodateFireworkLaunch(Block clickedBlock, Player player,
}
// The following materials only prevent firework launches whilst not sneaking.
switch (clickedMaterial.name()) {
case "POLISHED_BLACKSTONE_BUTTON":
// Pre Minecraft 1.16:
case "FURNACE":
case "DISPENSER":
case "CHEST":
Expand Down Expand Up @@ -189,10 +191,10 @@ private boolean canAccommodateFireworkLaunch(Block clickedBlock, Player player,
case "OAK_WALL_SIGN":
case "SPRUCE_SIGN":
case "SPRUCE_WALL_SIGN":
// Pre Minecraft 1.14":
// Pre Minecraft 1.14:
case "SIGN":
case "WALL_SIGN":
// Pre Minecraft 1.13":
// Pre Minecraft 1.13:
case "WORKBENCH":
case "BURNING_FURNACE":
case "WOOD_BUTTON":
Expand Down Expand Up @@ -233,7 +235,7 @@ private boolean canAccommodateFireworkLaunch(Block clickedBlock, Player player,
case "COMMAND_BLOCK_MINECART":
case "FURNACE_MINECART":
case "CHEST_MINECART":
// Pre Minecraft 1.13":
// Pre Minecraft 1.13:
case "EXPLOSIVE_MINECART":
case "COMMAND_MINECART":
case "POWERED_MINECART":
Expand Down

0 comments on commit 1c9a1bf

Please sign in to comment.