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

Commit

Permalink
Fix CAL Locking itself (#381)
Browse files Browse the repository at this point in the history
* Fix CAL Locking itself

* Update GT_TileEntity_CircuitAssemblyLine.java

Fix null

* I did the funny

(cherry picked from commit a3a6c50 [formerly 821bfc677d0a1e9ebd073e3441230042b34c8471])


Former-commit-id: d73531b3d44fbb96e3bdeaeb5fffe7424460ac74
  • Loading branch information
LewisSaber authored and Dream-Master committed Dec 20, 2023
1 parent bdd659b commit 88df7ab
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ) {
@Override
public void loadNBTData(NBTTagCompound aNBT) {
this.type = aNBT.getCompoundTag(IMPRINT_KEY);
this.imprintedItemName = GT_LanguageManager
.getTranslateableItemStackName(ItemStack.loadItemStackFromNBT(this.type));
this.imprintedItemName = this.type == null ? ""
: GT_LanguageManager.getTranslateableItemStackName(ItemStack.loadItemStackFromNBT(this.type));
mode = aNBT.getInteger(RUNNING_MODE_KEY);
length = aNBT.getInteger(LENGTH_KEY);
super.loadNBTData(aNBT);
Expand Down Expand Up @@ -562,7 +562,7 @@ public boolean isInputSeparationEnabled() {

@Override
public boolean isRecipeLockingEnabled() {
return this.imprintedItemName != null && !"".equals(this.imprintedItemName);
return this.mode == 0 && this.imprintedItemName != null && !"".equals(this.imprintedItemName);
}

@Override
Expand Down

0 comments on commit 88df7ab

Please sign in to comment.