diff options
author | durron597 <martin.jared@gmail.com> | 2011-01-01 03:21:49 -0500 |
---|---|---|
committer | durron597 <martin.jared@gmail.com> | 2011-01-01 03:21:49 -0500 |
commit | fc58672e6a50eaed52f5d201727afa14003c721b (patch) | |
tree | 38ddc1adcdacff46bc137556a6303ad00bbfad17 /src/net/minecraft | |
parent | 3094b40b8920bd1397f7ef6d7385cbffe6c4ae2c (diff) | |
download | craftbukkit-fc58672e6a50eaed52f5d201727afa14003c721b.tar craftbukkit-fc58672e6a50eaed52f5d201727afa14003c721b.tar.gz craftbukkit-fc58672e6a50eaed52f5d201727afa14003c721b.tar.lz craftbukkit-fc58672e6a50eaed52f5d201727afa14003c721b.tar.xz craftbukkit-fc58672e6a50eaed52f5d201727afa14003c721b.zip |
Changed BlockCanBuildEvent to store the int and not the material
Diffstat (limited to 'src/net/minecraft')
-rw-r--r-- | src/net/minecraft/server/WorldServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/minecraft/server/WorldServer.java b/src/net/minecraft/server/WorldServer.java index 6bc1883d..431cb0ac 100644 --- a/src/net/minecraft/server/WorldServer.java +++ b/src/net/minecraft/server/WorldServer.java @@ -95,7 +95,7 @@ public class WorldServer extends World { boolean superResult = super.a(i1, j1, k1, l1, flag); if (!flag) { - BlockCanBuildEvent event = new BlockCanBuildEvent(Type.BLOCK_CANBUILD, getWorld().getBlockAt(j1, k1, l1), Material.getMaterial(i1), superResult); + BlockCanBuildEvent event = new BlockCanBuildEvent(Type.BLOCK_CANBUILD, getWorld().getBlockAt(j1, k1, l1), i1, superResult); server.getPluginManager().callEvent(event); return event.isBuildable(); |