Skip to content

Commit fe9b68c

Browse files
authored
Print more info when failing to override locked instance (#1047)
1 parent 87f49e0 commit fe9b68c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/aztech/modern_industrialization/inventory/AbstractConfigurableStack.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public boolean isMachineLocked() {
181181

182182
public void enableMachineLock(T lockedInstance) {
183183
if (this.lockedInstance != null && lockedInstance != this.lockedInstance)
184-
throw new RuntimeException("Trying to override locked instance");
184+
throw new RuntimeException("Trying to override locked instance from %s to %s".formatted(this.lockedInstance, lockedInstance));
185185
machineLocked = true;
186186
this.lockedInstance = lockedInstance;
187187
notifyListeners();

0 commit comments

Comments
 (0)