@@ -1,18 +1,17 @@
|
||||
--- a/net/minecraft/server/ItemCrossbow.java
|
||||
+++ b/net/minecraft/server/ItemCrossbow.java
|
||||
@@ -75,6 +75,11 @@
|
||||
@@ -74,6 +74,10 @@
|
||||
if (itemstack1.isEmpty() && flag) {
|
||||
itemstack1 = new ItemStack(Items.ARROW);
|
||||
itemstack2 = itemstack1.cloneItemStack();
|
||||
}
|
||||
+ // CraftBukkit start - SPIGOT-4870, MC-150847
|
||||
+ else if (itemstack1.isEmpty()) {
|
||||
+ // CraftBukkit start - SPIGOT-4870, MC-150847
|
||||
+ } else if (itemstack1.isEmpty()) {
|
||||
+ return false;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
|
||||
if (!a(entityliving, itemstack, itemstack1, k > 0, flag)) {
|
||||
return false;
|
||||
@@ -198,11 +203,27 @@
|
||||
@@ -198,11 +202,27 @@
|
||||
vector3fa.a(quaternion);
|
||||
((IProjectile) object).shoot((double) vector3fa.a(), (double) vector3fa.b(), (double) vector3fa.c(), f1, f2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user