1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-28 00:12:16 +00:00
Signed-off-by: Devan-Kerman <devan@cleverpath.com>
This commit is contained in:
Devan-Kerman 2020-09-15 11:52:23 -05:00
parent 01d3d12992
commit 4d00969ef0

View File

@ -312,17 +312,11 @@ public class TurtlePlaceCommand implements ITurtleCommand {
}
if (!placed && (item instanceof BucketItem || item instanceof BoatItem || item instanceof LilyPadItem || item instanceof GlassBottleItem)) {
TypedActionResult<ItemStack> actionResult = stackCopy.use(turtle.getWorld(), turtlePlayer, Hand.MAIN_HAND);
if (actionResult != null && actionResult.getResult()
.isAccepted()) {
TypedActionResult<ItemStack> result = stackCopy.use(turtle.getWorld(), turtlePlayer, Hand.MAIN_HAND);
if (result.getResult()
.isAccepted() && !ItemStack.areEqual(stack, result.getValue())) {
placed = true;
} else if (actionResult == null) {
TypedActionResult<ItemStack> result = stackCopy.use(turtle.getWorld(), turtlePlayer, Hand.MAIN_HAND);
if (result.getResult()
.isAccepted() && !ItemStack.areEqual(stack, result.getValue())) {
placed = true;
turtlePlayer.loadInventory(result.getValue());
}
turtlePlayer.loadInventory(result.getValue());
}
}