Shorter comments

This commit is contained in:
Chaosdave34 2024-12-23 01:02:52 +01:00
parent 847e878d7b
commit a5facdc5bc

View file

@ -674,7 +674,7 @@
}
- return this.abilities.instabuild ? new ItemStack(Items.ARROW) : ItemStack.EMPTY;
+ // Paper start - Call PlayerUseBowWithoutProjectileEvent in Player#getProjectile
+ // Paper start - PlayerUseBowWithoutProjectileEvent
+ if (this.abilities.instabuild) {
+ return new ItemStack(Items.ARROW);
+ } else {
@ -682,7 +682,7 @@
+ event.callEvent();
+ return org.bukkit.craftbukkit.inventory.CraftItemStack.asNMSCopy(event.getProjectile());
+ }
+ // Paper end - Call PlayerUseBowWithoutProjectileEvent in Player#getProjectile
+ // Paper end - PlayerUseBowWithoutProjectileEvent
}
}
}