mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Changed BlockCanBuildEvent to store the int and not the material
This commit is contained in:
1 parent
3094b40b89
commit
fc58672e6a
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user