mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-25 10:27:55 +01:00
Fix BlockCanBuild
This commit is contained in:
parent
11590f49f0
commit
0d2dc3902c
@ -1637,7 +1637,7 @@ public class World implements IBlockAccess {
|
||||
return false;
|
||||
}
|
||||
|
||||
BlockCanBuildEvent event = new BlockCanBuildEvent(Type.BLOCK_CANBUILD, ((WorldServer) this).getWorld().getBlockAt(j, k, l), i1, defaultReturn);
|
||||
BlockCanBuildEvent event = new BlockCanBuildEvent(Type.BLOCK_CANBUILD, ((WorldServer) this).getWorld().getBlockAt(j, k, l), i, defaultReturn);
|
||||
((WorldServer) this).getServer().getPluginManager().callEvent(event);
|
||||
|
||||
return event.isBuildable();
|
||||
|
Loading…
Reference in New Issue
Block a user