mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 05:36:45 +01:00
* ;)
This commit is contained in:
parent
847ce7f20d
commit
3c86531b58
@ -55,7 +55,7 @@ public class TeleportEntityWrapper extends EntityWrapper {
|
|||||||
this.getEntity().setMetadata("ps-tmp-teleport", new FixedMetadataValue(
|
this.getEntity().setMetadata("ps-tmp-teleport", new FixedMetadataValue(
|
||||||
BukkitMain.getPlugin(BukkitMain.class), oldLocation));
|
BukkitMain.getPlugin(BukkitMain.class), oldLocation));
|
||||||
final Chunk newChunk = getNewChunk();
|
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() {
|
private Chunk getNewChunk() {
|
||||||
|
Loading…
Reference in New Issue
Block a user