From fa64fa5bed38ef76c00fc6e1485eb85da0d8374a Mon Sep 17 00:00:00 2001 From: Kenzie Togami Date: Thu, 23 Jun 2016 03:51:16 -0700 Subject: [PATCH] [Forge] Stop "supporting" some invalid blocks. --- .../src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java index 30cd3793e..6fe10f8ff 100644 --- a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java +++ b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java @@ -339,7 +339,8 @@ public class ForgeWorld extends AbstractWorld { @Override public boolean isValidBlockType(int id) { - return (id == 0) || (net.minecraft.block.Block.getBlockById(id) != null); + Block block = Block.getBlockById(id); + return Block.getIdFromBlock(block) == id; } @Override