mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Possibly fixed world leaks (mobs crossing into other worlds)
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
87d721733f
commit
f4f4b368db
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@ import java.net.InetSocketAddress;
|
||||||
import java.net.SocketAddress;
|
import java.net.SocketAddress;
|
||||||
import net.minecraft.server.EntityHuman;
|
import net.minecraft.server.EntityHuman;
|
||||||
import net.minecraft.server.EntityPlayer;
|
import net.minecraft.server.EntityPlayer;
|
||||||
|
import net.minecraft.server.ItemInWorldManager;
|
||||||
import net.minecraft.server.Packet;
|
import net.minecraft.server.Packet;
|
||||||
import net.minecraft.server.Packet3Chat;
|
import net.minecraft.server.Packet3Chat;
|
||||||
import net.minecraft.server.Packet6SpawnPosition;
|
import net.minecraft.server.Packet6SpawnPosition;
|
||||||
|
@ -123,6 +124,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||||
if (worldChange) {
|
if (worldChange) {
|
||||||
// Forceload the chunks around player
|
// Forceload the chunks around player
|
||||||
server.getServer().f.d.a(entity);
|
server.getServer().f.d.a(entity);
|
||||||
|
entity.c = new ItemInWorldManager(((CraftWorld)location.getWorld()).getHandle());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue