Skip to content

Commit

Permalink
Override cleanup methods in BlockCache implementations to remove world
Browse files Browse the repository at this point in the history
references.
  • Loading branch information
asofold committed Mar 13, 2013
1 parent 5197dbd commit f2ab4c9
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 0 deletions.
Expand Up @@ -62,5 +62,14 @@ public boolean standsOnEntity(final Entity entity, final double minX, final doub
}
return false;
}

/* (non-Javadoc)
* @see fr.neatmonster.nocheatplus.utilities.BlockCache#cleanup()
*/
@Override
public void cleanup() {
super.cleanup();
world = null;
}

}
Expand Up @@ -85,6 +85,15 @@ public boolean standsOnEntity(Entity entity, final double minX, final double min
return false;
}

/* (non-Javadoc)
* @see fr.neatmonster.nocheatplus.utilities.BlockCache#cleanup()
*/
@Override
public void cleanup() {
super.cleanup();
world = null;
}

@Override
public Material getMaterial(final int x, final int y, final int z) {
return world.getMaterial(x, y, z);
Expand Down
Expand Up @@ -84,6 +84,15 @@ public boolean standsOnEntity(final Entity entity, final double minX, final doub
}
return false;
}

/* (non-Javadoc)
* @see fr.neatmonster.nocheatplus.utilities.BlockCache#cleanup()
*/
@Override
public void cleanup() {
super.cleanup();
world = null;
}

@Override
public Material getMaterial(final int x, final int y, final int z) {
Expand Down
Expand Up @@ -84,6 +84,15 @@ public boolean standsOnEntity(final Entity entity, final double minX, final doub
}
return false;
}

/* (non-Javadoc)
* @see fr.neatmonster.nocheatplus.utilities.BlockCache#cleanup()
*/
@Override
public void cleanup() {
super.cleanup();
world = null;
}

@Override
public Material getMaterial(final int x, final int y, final int z) {
Expand Down
Expand Up @@ -85,6 +85,15 @@ public boolean standsOnEntity(final Entity entity, final double minX, final doub
}
return false;
}

/* (non-Javadoc)
* @see fr.neatmonster.nocheatplus.utilities.BlockCache#cleanup()
*/
@Override
public void cleanup() {
super.cleanup();
world = null;
}

@Override
public Material getMaterial(final int x, final int y, final int z) {
Expand Down
Expand Up @@ -84,6 +84,15 @@ public boolean standsOnEntity(final Entity entity, final double minX, final doub
}
return false;
}

/* (non-Javadoc)
* @see fr.neatmonster.nocheatplus.utilities.BlockCache#cleanup()
*/
@Override
public void cleanup() {
super.cleanup();
world = null;
}

@Override
public Material getMaterial(final int x, final int y, final int z) {
Expand Down

0 comments on commit f2ab4c9

Please sign in to comment.