mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-16 02:50:22 +00:00
Fixes #1167
This commit is contained in:
parent
c3b7302108
commit
0b7fbcde53
@ -323,8 +323,9 @@ public class TurtleBrain implements ITurtleAccess
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Create a new turtle
|
// We use Block.UPDATE_CLIENTS here to ensure that neighbour updates caused in Block.updateNeighbourShapes
|
||||||
if( world.setBlock( pos, newState, 0 ) )
|
// are sent to the client. We want to avoid doing a full block update until the turtle state is copied over.
|
||||||
|
if( world.setBlock( pos, newState, 2 ) )
|
||||||
{
|
{
|
||||||
Block block = world.getBlockState( pos ).getBlock();
|
Block block = world.getBlockState( pos ).getBlock();
|
||||||
if( block == oldBlock.getBlock() )
|
if( block == oldBlock.getBlock() )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user