Fixed some entity tracking bugs regarding chunk update packets

This commit is contained in:
xGamingDudex 2016-06-27 00:16:04 +02:00
parent 31352a86d7
commit 966eaf1616

View File

@ -9,6 +9,7 @@ import java.util.Map;
import org.bukkit.Bukkit;
import org.bukkit.block.Block;
import org.bukkit.craftbukkit.v1_8_R3.CraftChunk;
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer;
import org.bukkit.entity.Player;
import org.bukkit.util.BlockVector;
@ -19,6 +20,7 @@ import net.minecraft.server.v1_8_R3.Chunk;
import net.minecraft.server.v1_8_R3.ChunkCoordIntPair;
import net.minecraft.server.v1_8_R3.PacketPlayOutMultiBlockChange;
import net.minecraft.server.v1_8_R3.PacketPlayOutMultiBlockChange.MultiBlockChangeInfo;
import net.minecraft.server.v1_8_R3.WorldServer;
/**
* An agent used to easily record and send multi-block update packets to players. The agent handles if the packet should be a
@ -102,6 +104,7 @@ public class MultiBlockUpdaterAgent
for(Player p : players)
{
MapUtil.SendChunkForPlayer(c, p);
((WorldServer)c.world).tracker.untrackPlayer(((CraftPlayer)p).getHandle());
}
}
else