mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-30 20:37:52 +01:00
Fix some properties not getting reset for PlayerLocation. (Fixes
freezing.)
This commit is contained in:
parent
07994c6a34
commit
96f9232dae
@ -360,13 +360,24 @@ public class PlayerLocation {
|
||||
world = location.getWorld();
|
||||
worldServer = ((CraftWorld) world).getHandle();
|
||||
|
||||
typeId = typeIdBelow = null;
|
||||
aboveStairs = inLava = inWater = inWeb = onGround = onIce = onLadder = null;
|
||||
typeId = typeIdBelow = data = null;
|
||||
aboveStairs = inLava = inWater = inWeb = onGround = onIce = onLadder = passable = null;
|
||||
|
||||
// TODO: consider idCache.setAccess.
|
||||
|
||||
this.setyOnGround(yFreedom);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set some references to null.
|
||||
*/
|
||||
public void cleanup(){
|
||||
entity = null;
|
||||
world = null;
|
||||
worldServer = null;
|
||||
boundingBox = null;
|
||||
idCache = null;
|
||||
}
|
||||
|
||||
public double getyOnGround() {
|
||||
return yOnGround;
|
||||
@ -481,16 +492,6 @@ public class PlayerLocation {
|
||||
this.idCache = cache;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set some references to null.
|
||||
*/
|
||||
public void cleanup(){
|
||||
entity = null;
|
||||
world = null;
|
||||
worldServer = null;
|
||||
boundingBox = null;
|
||||
idCache = null;
|
||||
}
|
||||
|
||||
public WorldServer getWorldServer() {
|
||||
return worldServer;
|
||||
|
Loading…
Reference in New Issue
Block a user