tool break Status
This commit is contained in:
parent
6edc0e8af6
commit
2db920db16
1 changed files with 1 additions and 2 deletions
|
@ -85,8 +85,7 @@ public class RiftBladeItem extends SwordItem {
|
||||||
player.teleport(teleportPosition.getX(), teleportPosition.getY(), teleportPosition.getZ());
|
player.teleport(teleportPosition.getX(), teleportPosition.getY(), teleportPosition.getZ());
|
||||||
player.setYaw((float) (Math.random() * 2 * Math.PI));
|
player.setYaw((float) (Math.random() * 2 * Math.PI));
|
||||||
|
|
||||||
stack.damage(1, player, a -> {
|
stack.damage(1, player, a -> a.sendToolBreakStatus(hand));
|
||||||
});
|
|
||||||
return new TypedActionResult<>(ActionResult.SUCCESS, stack);
|
return new TypedActionResult<>(ActionResult.SUCCESS, stack);
|
||||||
} else if (RaycastHelper.hitsDetachedRift(hit, world)) {
|
} else if (RaycastHelper.hitsDetachedRift(hit, world)) {
|
||||||
BlockHitResult blockHitResult = (BlockHitResult) hit;
|
BlockHitResult blockHitResult = (BlockHitResult) hit;
|
||||||
|
|
Loading…
Add table
Reference in a new issue