From 7e0ce358de89e678b64b20123516c92e4bfd2360 Mon Sep 17 00:00:00 2001 From: LemADEC Date: Sat, 20 Aug 2016 01:39:15 +0200 Subject: [PATCH] Improved plugins detection for fake players --- src/main/java/cr0s/warpdrive/event/JumpSequencer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/cr0s/warpdrive/event/JumpSequencer.java b/src/main/java/cr0s/warpdrive/event/JumpSequencer.java index cf1b90ad..68e644c9 100644 --- a/src/main/java/cr0s/warpdrive/event/JumpSequencer.java +++ b/src/main/java/cr0s/warpdrive/event/JumpSequencer.java @@ -1206,6 +1206,7 @@ public class JumpSequencer extends AbstractSequencer { int x, y, z; ChunkCoordinates coordTarget; + ChunkCoordinates coordCoreAtTarget = transformation.apply(ship.coreX, ship.coreY, ship.coreZ); Block blockSource; Block blockTarget; for (y = ship.minY; y <= ship.maxY; y++) { @@ -1243,7 +1244,7 @@ public class JumpSequencer extends AbstractSequencer { } } - if (blockSource != Blocks.air && WarpDrive.proxy.isBlockPlaceCanceled(null, ship.coreX, ship.coreY, ship.coreZ, + if (blockSource != Blocks.air && WarpDrive.proxy.isBlockPlaceCanceled(null, coordCoreAtTarget.posX, coordCoreAtTarget.posY, coordCoreAtTarget.posZ, targetWorld, coordTarget.posX, coordTarget.posY, coordTarget.posZ, blockSource, 0)) { result.add(x, y, z, coordTarget.posX,