Don't use Packet56 and clear client cache on world changes.

This commit is contained in:
Travis Watkins
2012-08-05 18:42:03 -05:00
parent 0e013fa4b0
commit beb71069b7
2 changed files with 9 additions and 1 deletions

View File

@@ -380,6 +380,8 @@ public abstract class ServerConfigurationManagerAbstract {
// CraftBukkit start
byte actualDimension = (byte) (worldserver.getWorld().getEnvironment().getId());
// Force the client to refresh their chunk cache.
entityplayer1.netServerHandler.sendPacket(new Packet9Respawn((byte) (actualDimension >= 0 ? -1 : 0), (byte) worldserver.difficulty, worldserver.getWorldData().getType(), worldserver.getHeight(), entityplayer.itemInWorldManager.getGameMode()));
entityplayer1.netServerHandler.sendPacket(new Packet9Respawn(actualDimension, (byte) worldserver.difficulty, worldserver.getWorldData().getType(), worldserver.getHeight(), entityplayer.itemInWorldManager.getGameMode()));
entityplayer1.spawnIn(worldserver);
entityplayer1.dead = false;