Fix a out of memory error when changing worlds

This commit is contained in:
James Seibel
2021-09-16 20:28:07 -05:00
parent d7d88d61ee
commit 8df6e972cb
@@ -254,6 +254,12 @@ public class ClientProxy
// breaking when changing worlds.
renderer.destroyBuffers();
recalculateWidths = true;
// make sure the nulled objects are freed.
// (this prevents a out of memory error when
// changing worlds)
System.gc();
}
}