This commit is contained in:
sauilitired 2018-08-19 22:21:42 +02:00
parent 847ce7f20d
commit 3c86531b58

View File

@ -55,7 +55,7 @@ public class TeleportEntityWrapper extends EntityWrapper {
this.getEntity().setMetadata("ps-tmp-teleport", new FixedMetadataValue(
BukkitMain.getPlugin(BukkitMain.class), oldLocation));
final Chunk newChunk = getNewChunk();
this.getEntity().teleport(new Location(newChunk.getWorld(), newChunk.getX() >> 4, 5000, newChunk.getZ() >> 4));
this.getEntity().teleport(new Location(newChunk.getWorld(), newChunk.getX() << 4, 5000, newChunk.getZ() << 4));
}
private Chunk getNewChunk() {