summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/NetServerHandler.java
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-03-04 14:20:05 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-03-04 14:20:38 +0000
commit770bb9e3b5b9824d83b6fadaa6ed0b6afa6e12d7 (patch)
treec90d29b937b583f266b1802f0f5ac3dcb73558a1 /src/main/java/net/minecraft/server/NetServerHandler.java
parent332b0c2ca93e1556e2464fdbdd12d83fef006001 (diff)
downloadcraftbukkit-770bb9e3b5b9824d83b6fadaa6ed0b6afa6e12d7.tar
craftbukkit-770bb9e3b5b9824d83b6fadaa6ed0b6afa6e12d7.tar.gz
craftbukkit-770bb9e3b5b9824d83b6fadaa6ed0b6afa6e12d7.tar.lz
craftbukkit-770bb9e3b5b9824d83b6fadaa6ed0b6afa6e12d7.tar.xz
craftbukkit-770bb9e3b5b9824d83b6fadaa6ed0b6afa6e12d7.zip
Removed Block.getRawData
Diffstat (limited to 'src/main/java/net/minecraft/server/NetServerHandler.java')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java
index 56335ac6..8486188b 100644
--- a/src/main/java/net/minecraft/server/NetServerHandler.java
+++ b/src/main/java/net/minecraft/server/NetServerHandler.java
@@ -347,8 +347,8 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
// if we are destroying either a redstone wire with a current greater than 0 or
// a redstone torch that is on, then we should notify plugins that this block has
// returned to a current value of 0 (since it will once the redstone is destroyed)
- if ((blockId == Block.REDSTONE_WIRE.id && block.getRawData() > 0) || blockId == Block.REDSTONE_TORCH_ON.id) {
- server.getPluginManager().callEvent( new BlockRedstoneEvent(block, (blockId == Block.REDSTONE_WIRE.id ? block.getRawData() : 15), 0));
+ if ((blockId == Block.REDSTONE_WIRE.id && block.getData() > 0) || blockId == Block.REDSTONE_TORCH_ON.id) {
+ server.getPluginManager().callEvent( new BlockRedstoneEvent(block, (blockId == Block.REDSTONE_WIRE.id ? block.getData() : 15), 0));
}
event = new BlockDamageEvent(Type.BLOCK_DAMAGED, block, BlockDamageLevel.BROKEN, player);
} else {