mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 06:50:12 +01:00
Shorter comments
This commit is contained in:
parent
847e878d7b
commit
a5facdc5bc
1 changed files with 2 additions and 2 deletions
|
@ -674,7 +674,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- return this.abilities.instabuild ? new ItemStack(Items.ARROW) : ItemStack.EMPTY;
|
- return this.abilities.instabuild ? new ItemStack(Items.ARROW) : ItemStack.EMPTY;
|
||||||
+ // Paper start - Call PlayerUseBowWithoutProjectileEvent in Player#getProjectile
|
+ // Paper start - PlayerUseBowWithoutProjectileEvent
|
||||||
+ if (this.abilities.instabuild) {
|
+ if (this.abilities.instabuild) {
|
||||||
+ return new ItemStack(Items.ARROW);
|
+ return new ItemStack(Items.ARROW);
|
||||||
+ } else {
|
+ } else {
|
||||||
|
@ -682,7 +682,7 @@
|
||||||
+ event.callEvent();
|
+ event.callEvent();
|
||||||
+ return org.bukkit.craftbukkit.inventory.CraftItemStack.asNMSCopy(event.getProjectile());
|
+ return org.bukkit.craftbukkit.inventory.CraftItemStack.asNMSCopy(event.getProjectile());
|
||||||
+ }
|
+ }
|
||||||
+ // Paper end - Call PlayerUseBowWithoutProjectileEvent in Player#getProjectile
|
+ // Paper end - PlayerUseBowWithoutProjectileEvent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue