Fixed NPE from missing Capabilities (#3191)
This commit is contained in:
parent
0e286f880e
commit
dd41990db4
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ public class WorldCapabilityData extends WorldSavedData
|
||||||
public void setCapabilities(WorldProvider provider, INBTSerializable<NBTTagCompound> capabilities)
|
public void setCapabilities(WorldProvider provider, INBTSerializable<NBTTagCompound> capabilities)
|
||||||
{
|
{
|
||||||
this.serializable = capabilities;
|
this.serializable = capabilities;
|
||||||
if (this.capNBT != null)
|
if (this.capNBT != null && serializable != null)
|
||||||
{
|
{
|
||||||
serializable.deserializeNBT(this.capNBT);
|
serializable.deserializeNBT(this.capNBT);
|
||||||
this.capNBT = null;
|
this.capNBT = null;
|
||||||
|
|
Loading…
Reference in a new issue