mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-07 12:57:55 +00:00
Fix incorrect open container check
This commit is contained in:
@@ -54,10 +54,9 @@ public final class TurtlePlayer extends FakePlayer {
|
||||
}
|
||||
|
||||
private void setState(ITurtleAccess turtle) {
|
||||
if (this.currentScreenHandler != null) {
|
||||
if (this.currentScreenHandler != playerScreenHandler) {
|
||||
ComputerCraft.log.warn("Turtle has open container ({})", this.currentScreenHandler);
|
||||
this.currentScreenHandler.close(this);
|
||||
this.currentScreenHandler = null;
|
||||
closeCurrentScreen();
|
||||
}
|
||||
|
||||
BlockPos position = turtle.getPosition();
|
||||
|
Reference in New Issue
Block a user