mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-02 13:57:49 +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();
|
world = location.getWorld();
|
||||||
worldServer = ((CraftWorld) world).getHandle();
|
worldServer = ((CraftWorld) world).getHandle();
|
||||||
|
|
||||||
typeId = typeIdBelow = null;
|
typeId = typeIdBelow = data = null;
|
||||||
aboveStairs = inLava = inWater = inWeb = onGround = onIce = onLadder = null;
|
aboveStairs = inLava = inWater = inWeb = onGround = onIce = onLadder = passable = null;
|
||||||
|
|
||||||
// TODO: consider idCache.setAccess.
|
// TODO: consider idCache.setAccess.
|
||||||
|
|
||||||
this.setyOnGround(yFreedom);
|
this.setyOnGround(yFreedom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set some references to null.
|
||||||
|
*/
|
||||||
|
public void cleanup(){
|
||||||
|
entity = null;
|
||||||
|
world = null;
|
||||||
|
worldServer = null;
|
||||||
|
boundingBox = null;
|
||||||
|
idCache = null;
|
||||||
|
}
|
||||||
|
|
||||||
public double getyOnGround() {
|
public double getyOnGround() {
|
||||||
return yOnGround;
|
return yOnGround;
|
||||||
@ -481,16 +492,6 @@ public class PlayerLocation {
|
|||||||
this.idCache = cache;
|
this.idCache = cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set some references to null.
|
|
||||||
*/
|
|
||||||
public void cleanup(){
|
|
||||||
entity = null;
|
|
||||||
world = null;
|
|
||||||
worldServer = null;
|
|
||||||
boundingBox = null;
|
|
||||||
idCache = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public WorldServer getWorldServer() {
|
public WorldServer getWorldServer() {
|
||||||
return worldServer;
|
return worldServer;
|
||||||
|
Loading…
Reference in New Issue
Block a user