mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-07 16:00:31 +00:00
Fixed side input consistency issue when a turtle upgrade is removed (#743)
This commit is contained in:
parent
02695aea51
commit
c40a13558c
@ -624,7 +624,11 @@ public class TurtleBrain implements ITurtleAccess
|
|||||||
// This is a separate function to avoid updating the block when reading the NBT. We don't need to do this as
|
// This is a separate function to avoid updating the block when reading the NBT. We don't need to do this as
|
||||||
// either the block is newly placed (and so won't have changed) or is being updated with /data, which calls
|
// either the block is newly placed (and so won't have changed) or is being updated with /data, which calls
|
||||||
// updateBlock for us.
|
// updateBlock for us.
|
||||||
if( owner.getLevel() != null ) owner.updateBlock();
|
if( owner.getLevel() != null )
|
||||||
|
{
|
||||||
|
owner.updateBlock();
|
||||||
|
owner.updateInput();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean setUpgradeDirect( @Nonnull TurtleSide side, ITurtleUpgrade upgrade )
|
private boolean setUpgradeDirect( @Nonnull TurtleSide side, ITurtleUpgrade upgrade )
|
||||||
|
@ -5,7 +5,7 @@ import dan200.computercraft.ingame.api.TestContext
|
|||||||
import dan200.computercraft.ingame.api.checkComputerOk
|
import dan200.computercraft.ingame.api.checkComputerOk
|
||||||
|
|
||||||
class TurtleTest {
|
class TurtleTest {
|
||||||
@GameTest(required = false)
|
@GameTest
|
||||||
suspend fun `Unequip refreshes peripheral`(context: TestContext) = context.checkComputerOk(1)
|
suspend fun `Unequip refreshes peripheral`(context: TestContext) = context.checkComputerOk(1)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user