mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-02 18:37:55 +00:00
Fix incorrect open container check
This commit is contained in:
@@ -82,3 +82,11 @@ Use tags to check if something is a dye
|
|||||||
We half did this already, just needed to change a couple of checks.
|
We half did this already, just needed to change a couple of checks.
|
||||||
Closes #541.
|
Closes #541.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
6cee4efcd3610536ee74330cd728f7371011e5a8
|
||||||
|
Fix incorrect open container check
|
||||||
|
|
||||||
|
Was this always broken, or did it happen in a Minecraft update? Don't
|
||||||
|
know, but it's a very silly mistake either way. Fixes #544
|
||||||
|
```
|
||||||
|
@@ -54,10 +54,9 @@ public final class TurtlePlayer extends FakePlayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setState(ITurtleAccess turtle) {
|
private void setState(ITurtleAccess turtle) {
|
||||||
if (this.currentScreenHandler != null) {
|
if (this.currentScreenHandler != playerScreenHandler) {
|
||||||
ComputerCraft.log.warn("Turtle has open container ({})", this.currentScreenHandler);
|
ComputerCraft.log.warn("Turtle has open container ({})", this.currentScreenHandler);
|
||||||
this.currentScreenHandler.close(this);
|
closeCurrentScreen();
|
||||||
this.currentScreenHandler = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BlockPos position = turtle.getPosition();
|
BlockPos position = turtle.getPosition();
|
||||||
|
Reference in New Issue
Block a user