Permalink
Browse files

Fix commandblock functions

  • Loading branch information...
PseudoKnight committed Aug 22, 2018
1 parent 1886834 commit d1678aa40372717acb4ffb031af9dc42875fad47
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/main/java/com/laytonsmith/abstraction/bukkit/blocks/BukkitMCBlock.java
@@ -28,7 +28,6 @@
import org.bukkit.block.Sign;
import org.bukkit.block.data.BlockData;
import org.bukkit.inventory.ItemStack;
import org.bukkit.material.Command;
import java.util.ArrayList;
import java.util.Collection;
@@ -142,7 +141,7 @@ public MCCommandBlock getCommandBlock() {
@Override
public boolean isCommandBlock() {
return Command.class.isAssignableFrom(b.getType().getData());
return b.getState() instanceof CommandBlock;
}
@Override

0 comments on commit d1678aa

Please sign in to comment.