Fixes #22
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:
parent
c15e4253e8
commit
5e7cb14219
1 changed files with 3 additions and 0 deletions
|
@ -668,6 +668,9 @@ public class PocketManager
|
|||
|
||||
public static DimLink getLink(int x, int y, int z, int dimensionID)
|
||||
{
|
||||
if (!isLoaded())
|
||||
return null;
|
||||
|
||||
NewDimData dimension = dimensionData.get(dimensionID);
|
||||
if (dimension != null)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue