tool break Status

This commit is contained in:
SD 2021-02-17 12:04:00 +05:30
parent 6edc0e8af6
commit 2db920db16
No known key found for this signature in database
GPG key ID: E36B57EE08544BC5

View file

@ -85,8 +85,7 @@ public class RiftBladeItem extends SwordItem {
player.teleport(teleportPosition.getX(), teleportPosition.getY(), teleportPosition.getZ());
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);
} else if (RaycastHelper.hitsDetachedRift(hit, world)) {
BlockHitResult blockHitResult = (BlockHitResult) hit;