Fixed NPE from missing Capabilities (#3191)

This commit is contained in:
Abastro 2016-08-15 05:58:54 +09:00 committed by LexManos
parent 0e286f880e
commit dd41990db4

View file

@ -50,7 +50,7 @@ public class WorldCapabilityData extends WorldSavedData
public void setCapabilities(WorldProvider provider, INBTSerializable<NBTTagCompound> capabilities)
{
this.serializable = capabilities;
if (this.capNBT != null)
if (this.capNBT != null && serializable != null)
{
serializable.deserializeNBT(this.capNBT);
this.capNBT = null;