3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 04:20:08 +01:00

Changed BlockCanBuildEvent to store the int and not the material

Dieser Commit ist enthalten in:
durron597 2011-01-01 03:21:49 -05:00
Ursprung 3094b40b89
Commit fc58672e6a

Datei anzeigen

@ -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();