SPIGOT-7744: Fix crash when shooting arrows in creative mode

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot 2024-06-13 20:53:57 -04:00
parent b7c0614c58
commit 1498e34f2c

View file

@ -83,8 +83,12 @@
} else {
this.firedFromWeapon = null;
}
@@ -630,17 +643,10 @@
EntityArrow.PickupStatus entityarrow_pickupstatus;
@@ -627,34 +640,30 @@
Entity entity1 = entity;
byte b0 = 0;
- EntityArrow.PickupStatus entityarrow_pickupstatus;
+ EntityArrow.PickupStatus entityarrow_pickupstatus = this.pickup; // CraftBukkit - decompile error
label16:
- while(true) {
@ -105,7 +109,9 @@
if (this.pickup != EntityArrow.PickupStatus.DISALLOWED) {
b0 = 1;
@@ -649,12 +655,15 @@
- break;
+ break label16;
}
entityarrow_pickupstatus = EntityArrow.PickupStatus.ALLOWED;
break label16;