Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
Fix low power laser converter exploding after being painted and place…
Browse files Browse the repository at this point in the history
…d back in the world (#383)
  • Loading branch information
antropod authored Dec 26, 2023
1 parent cbf2d76 commit ccd6ffc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ public void saveNBTData(NBTTagCompound nbtTagCompound) {

@Override
public void loadNBTData(NBTTagCompound nbtTagCompound) {
Optional.ofNullable(nbtTagCompound).ifPresent(tag -> this.AMPERES = tag.getLong("AMPERES"));
if (nbtTagCompound != null && nbtTagCompound.hasKey("AMPERES")) {
this.AMPERES = nbtTagCompound.getLong("AMPERES");
}
}

@Override
Expand Down

0 comments on commit ccd6ffc

Please sign in to comment.