mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-01 11:49:12 +00:00
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
This commit is contained in:
parent
6f868849ab
commit
6cee4efcd3
@ -55,11 +55,10 @@ public final class TurtlePlayer extends FakePlayer
|
|||||||
|
|
||||||
private void setState( ITurtleAccess turtle )
|
private void setState( ITurtleAccess turtle )
|
||||||
{
|
{
|
||||||
if( openContainer != null )
|
if( openContainer != container )
|
||||||
{
|
{
|
||||||
ComputerCraft.log.warn( "Turtle has open container ({})", openContainer );
|
ComputerCraft.log.warn( "Turtle has open container ({})", openContainer );
|
||||||
openContainer.onContainerClosed( this );
|
closeContainer();
|
||||||
openContainer = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BlockPos position = turtle.getPosition();
|
BlockPos position = turtle.getPosition();
|
||||||
|
Loading…
Reference in New Issue
Block a user