mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
SPIGOT-5449: Fix issue with projectiles
By: md_5 <git@md-5.net>
This commit is contained in:
parent
b456056bb7
commit
152e0f26b5
1 changed files with 13 additions and 0 deletions
13
paper-server/nms-patches/EntityProjectileThrowable.patch
Normal file
13
paper-server/nms-patches/EntityProjectileThrowable.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- a/net/minecraft/server/EntityProjectileThrowable.java
|
||||
+++ b/net/minecraft/server/EntityProjectileThrowable.java
|
||||
@@ -18,8 +18,8 @@
|
||||
|
||||
public void setItem(ItemStack itemstack) {
|
||||
if (itemstack.getItem() != this.i() || itemstack.hasTag()) {
|
||||
- this.getDataWatcher().set(EntityProjectileThrowable.e, SystemUtils.a((Object) itemstack.cloneItemStack(), (itemstack1) -> {
|
||||
- itemstack1.setCount(1);
|
||||
+ this.getDataWatcher().set(EntityProjectileThrowable.e, SystemUtils.a(itemstack.cloneItemStack(), (itemstack1) -> { // CraftBukkit - decompile error
|
||||
+ if (!itemstack1.isEmpty()) itemstack1.setCount(1); // CraftBukkit
|
||||
}));
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue