If the server disconnected you due to a timeout or whatever, the pocket
manager would appropriately unload all dimension & pocket data, but it
would do so moments before the world unloaded, meaning that entities would
sometimes, on update or as part of their renderer, attempt to access the
dimensional data.  This places a new guard condition that attempts to stop
that from crashing the client.
This commit is contained in:
Stephen Baynham 2015-07-21 19:57:29 -04:00
parent c15e4253e8
commit 5e7cb14219

View file

@ -668,6 +668,9 @@ public class PocketManager
public static DimLink getLink(int x, int y, int z, int dimensionID) public static DimLink getLink(int x, int y, int z, int dimensionID)
{ {
if (!isLoaded())
return null;
NewDimData dimension = dimensionData.get(dimensionID); NewDimData dimension = dimensionData.get(dimensionID);
if (dimension != null) if (dimension != null)
{ {