mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-20 22:16:57 +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 )
|
||||
{
|
||||
if( openContainer != null )
|
||||
if( openContainer != container )
|
||||
{
|
||||
ComputerCraft.log.warn( "Turtle has open container ({})", openContainer );
|
||||
openContainer.onContainerClosed( this );
|
||||
openContainer = null;
|
||||
closeContainer();
|
||||
}
|
||||
|
||||
BlockPos position = turtle.getPosition();
|
||||
|
Loading…
Reference in New Issue
Block a user