1
0
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:
Merith-TK
2021-02-22 03:22:39 -08:00
parent d483a91459
commit 79534e5630
2 changed files with 10 additions and 3 deletions

View File

@@ -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();