summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorsk89q <the.sk89q@gmail.com>2011-01-08 12:24:39 -0800
committersk89q <the.sk89q@gmail.com>2011-01-08 12:24:39 -0800
commite83d9f676d746cdf2b55936036513535d2cbef65 (patch)
tree129f89f5f664d0e26f8408e2aa0d5b0d84da107d /src/main/java/org
parenteb4b30185fb79aa07fc74e955134df1e5be35859 (diff)
downloadcraftbukkit-e83d9f676d746cdf2b55936036513535d2cbef65.tar
craftbukkit-e83d9f676d746cdf2b55936036513535d2cbef65.tar.gz
craftbukkit-e83d9f676d746cdf2b55936036513535d2cbef65.tar.lz
craftbukkit-e83d9f676d746cdf2b55936036513535d2cbef65.tar.xz
craftbukkit-e83d9f676d746cdf2b55936036513535d2cbef65.zip
Changed Block.setTypeID() to return a boolean indicating whether the block was changed (as provided by Minecraft).
Diffstat (limited to 'src/main/java/org')
-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);
}
/**