mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-06 04:17:56 +00:00
@@ -312,11 +312,6 @@ public class TurtlePlaceCommand implements ITurtleCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!placed && (item instanceof BucketItem || item instanceof BoatItem || item instanceof LilyPadItem || item instanceof GlassBottleItem)) {
|
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()) {
|
|
||||||
placed = true;
|
|
||||||
} else if (actionResult == null) {
|
|
||||||
TypedActionResult<ItemStack> result = stackCopy.use(turtle.getWorld(), turtlePlayer, Hand.MAIN_HAND);
|
TypedActionResult<ItemStack> result = stackCopy.use(turtle.getWorld(), turtlePlayer, Hand.MAIN_HAND);
|
||||||
if (result.getResult()
|
if (result.getResult()
|
||||||
.isAccepted() && !ItemStack.areEqual(stack, result.getValue())) {
|
.isAccepted() && !ItemStack.areEqual(stack, result.getValue())) {
|
||||||
@@ -324,7 +319,6 @@ public class TurtlePlaceCommand implements ITurtleCommand {
|
|||||||
turtlePlayer.loadInventory(result.getValue());
|
turtlePlayer.loadInventory(result.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Set text on signs
|
// Set text on signs
|
||||||
if (placed && item instanceof SignItem) {
|
if (placed && item instanceof SignItem) {
|
||||||
|
Reference in New Issue
Block a user