discardWorld

public static void discardWorld(World world)

Drops the state of an unloading world's entities without writing to them. Each state's writer holds its entity and the entity holds its world, so a leftover state keeps the world in memory.