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:
Ursprung
3094b40b89
Commit
fc58672e6a
@ -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();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren