mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
Fixed physics event
This commit is contained in:
parent
a69c75bede
commit
1795a66df3
@ -69,7 +69,7 @@ public class WorldServer extends World {
|
|||||||
|
|
||||||
if (block != null) {
|
if (block != null) {
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
BlockPhysicsEvent event = new BlockPhysicsEvent(Type.BLOCK_PHYSICS, world.getBlockAt(f, y, f), l1);
|
BlockPhysicsEvent event = new BlockPhysicsEvent(Type.BLOCK_PHYSICS, world.getBlockAt(i1, j1, k1), l1);
|
||||||
server.getPluginManager().callEvent(event);
|
server.getPluginManager().callEvent(event);
|
||||||
if (event.isCancelled()) {
|
if (event.isCancelled()) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user