SPIGOT-7744: Fix crash when shooting arrows in creative mode
This commit is contained in:
parent
819f7a10aa
commit
64e0ad1292
@ -83,8 +83,12 @@
|
|||||||
} else {
|
} else {
|
||||||
this.firedFromWeapon = null;
|
this.firedFromWeapon = null;
|
||||||
}
|
}
|
||||||
@@ -630,17 +643,10 @@
|
@@ -627,34 +640,30 @@
|
||||||
EntityArrow.PickupStatus entityarrow_pickupstatus;
|
Entity entity1 = entity;
|
||||||
|
byte b0 = 0;
|
||||||
|
|
||||||
|
- EntityArrow.PickupStatus entityarrow_pickupstatus;
|
||||||
|
+ EntityArrow.PickupStatus entityarrow_pickupstatus = this.pickup; // CraftBukkit - decompile error
|
||||||
|
|
||||||
label16:
|
label16:
|
||||||
- while(true) {
|
- while(true) {
|
||||||
@ -105,7 +109,9 @@
|
|||||||
|
|
||||||
if (this.pickup != EntityArrow.PickupStatus.DISALLOWED) {
|
if (this.pickup != EntityArrow.PickupStatus.DISALLOWED) {
|
||||||
b0 = 1;
|
b0 = 1;
|
||||||
@@ -649,12 +655,15 @@
|
- break;
|
||||||
|
+ break label16;
|
||||||
|
}
|
||||||
|
|
||||||
entityarrow_pickupstatus = EntityArrow.PickupStatus.ALLOWED;
|
entityarrow_pickupstatus = EntityArrow.PickupStatus.ALLOWED;
|
||||||
break label16;
|
break label16;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user