summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftBlock.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/CraftBlock.java
index 92b3ea2e..64b13a4f 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftBlock.java
+++ b/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);
}
/**