Skip to content
Permalink
Browse files

Remove problematic casting in DispenserRecipes

  • Loading branch information
me4502 committed Mar 7, 2020
1 parent 9c6b93f commit b1c9e67b75e918c62512305df34b4464ba6d9893
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/sk89q/craftbook/mechanics/dispenser/Fan.java
@@ -31,7 +31,7 @@ public Fan() {
@Override
public boolean doAction(Block block, ItemStack item, Vector velocity, BlockDispenseEvent event) {
Dispenser d = (Dispenser) block.getBlockData();
BlockFace face = ((org.bukkit.material.Dispenser) d).getFacing();
BlockFace face = d.getFacing();
Location dispenserLoc = block.getRelative(face).getLocation();
for (Entity e : block.getWorld().getChunkAt(dispenserLoc).getEntities()) {
if (EntityUtil.isEntityInBlock(e, dispenserLoc.getBlock())) {

0 comments on commit b1c9e67

Please sign in to comment.
You can’t perform that action at this time.