From f992249f27b96e6dd4f4e510c4f051cb66ad6c5c Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 8 Jan 2011 12:24:39 -0800 Subject: [PATCH] Changed Block.setTypeID() to return a boolean indicating whether the block was changed (as provided by Minecraft). By: sk89q --- .../src/main/java/org/bukkit/craftbukkit/CraftBlock.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftBlock.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftBlock.java index 92b3ea2e58..64b13a4fe3 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftBlock.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftBlock.java @@ -117,10 +117,11 @@ public class CraftBlock implements Block { * Sets the type-ID of this block * * @param type Type-ID to change this block to + * @return whether the block was changed */ - public void setTypeID(final int type) { + public boolean setTypeID(final int type) { this.type = type; - world.getHandle().d(x, y, z, type); + return world.getHandle().d(x, y, z, type); } /**