mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-19 02:24:04 +00:00
@@ -290,9 +290,8 @@ public class TurtlePlaceCommand implements ITurtleCommand
|
|||||||
private static boolean canDeployOnBlock( @Nonnull BlockItemUseContext context, ITurtleAccess turtle, TurtlePlayer player, BlockPos position, Direction side, boolean allowReplaceable, String[] outErrorMessage )
|
private static boolean canDeployOnBlock( @Nonnull BlockItemUseContext context, ITurtleAccess turtle, TurtlePlayer player, BlockPos position, Direction side, boolean allowReplaceable, String[] outErrorMessage )
|
||||||
{
|
{
|
||||||
World world = turtle.getWorld();
|
World world = turtle.getWorld();
|
||||||
if( World.isValid( position ) &&
|
if( !World.isValid( position ) || world.isAirBlock( position ) ||
|
||||||
!world.isAirBlock( position ) &&
|
(context.getItem().getItem() instanceof BlockItem && WorldUtil.isLiquidBlock( world, position )) )
|
||||||
!(context.getItem().getItem() instanceof BlockItem && WorldUtil.isLiquidBlock( world, position )) )
|
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -315,7 +314,7 @@ public class TurtlePlaceCommand implements ITurtleCommand
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return context.canPlace();
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nonnull
|
@Nonnull
|
||||||
|
Reference in New Issue
Block a user