Skip to content

Commit

Permalink
added refresh chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
Realizedd committed Jul 6, 2018
1 parent f457105 commit 0da3156
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public void tryTeleport(final Player player, final Location location, final Cons
chunk.load();
}

location.getWorld().refreshChunk(chunk.getX(), chunk.getZ());
MetadataUtil.put(plugin, player, METADATA_KEY, location.clone());

if (!player.teleport(location)) {
Expand Down

0 comments on commit 0da3156

Please sign in to comment.