Add more checkstyle checks

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-01-31 10:08:41 +11:00
parent 540be51514
commit 04c4f1b337
13 changed files with 89 additions and 59 deletions

View File

@@ -13,7 +13,7 @@
if (k == 0) {
EntityThrownTrident entitythrowntrident = new EntityThrownTrident(world, entityhuman, itemstack);
@@ -54,16 +57,40 @@
@@ -54,16 +57,39 @@
entitythrowntrident.fromPlayer = EntityArrow.PickupStatus.CREATIVE_ONLY;
}
@@ -36,14 +36,13 @@
if (!entityhuman.abilities.canInstantlyBuild) {
entityhuman.inventory.f(itemstack);
}
}
+ // CraftBukkit start - SPIGOT-5458 also need in this branch :(
+ else {
+ // CraftBukkit start - SPIGOT-5458 also need in this branch :(
+ } else {
+ itemstack.damage(1, entityhuman, (entityhuman1) -> {
+ entityhuman1.broadcastItemBreak(entityliving.getRaisedHand());
+ });
+ }
+ // CraftBukkkit end
+ // CraftBukkkit end
}
}
entityhuman.b(StatisticList.ITEM_USED.b(this));