mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Don't save capabilities if level is null as we don't have enough context
This commit is contained in:
1 file changed
+1
-1
@@ -43,7 +43,7 @@
|
||||
}
|
||||
|
||||
protected void saveAdditional(ValueOutput p_407573_) {
|
||||
+ if (getCapabilities() != null) p_407573_.storeNullable("ForgeCaps", CompoundTag.CODEC, serializeCaps(this.level.registryAccess()));
|
||||
+ if (getCapabilities() != null && this.level != null) p_407573_.storeNullable("ForgeCaps", CompoundTag.CODEC, serializeCaps(this.level.registryAccess()));
|
||||
}
|
||||
|
||||
public final CompoundTag saveWithFullMetadata(HolderLookup.Provider p_331193_) {
|
||||
|
||||
Reference in new issue
Block a user