Minecraft 1.21.5

Co-authored-by: Ven <[email protected]>
Co-authored-by: Jonathing <[email protected]>
This commit is contained in:
committed 2025-03-26 16:34:26 -07:00
1 parent 88904a1d09
commit d50a3b5ab7
548 files changed
+5432 -7867

No files matched your search

@@ -91,8 +91,6 @@ public class EnergyStorage implements IEnergyStorage, INBTSerializable<Tag> {
@Override
public void deserializeNBT(HolderLookup.Provider registryAccess, Tag nbt) {
if (!(nbt instanceof IntTag intNbt))
throw new IllegalArgumentException("Can not deserialize to an instance that isn't the default implementation");
this.energy = intNbt.getAsInt();
this.energy = nbt.asInt().orElseThrow(() -> new IllegalArgumentException("Can not deserialize to an instance that isn't the default implementation"));
}
}