mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 18:50:51 +01:00
SPIGOT-7744: Fix crash when shooting arrows in creative mode
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
b7c0614c58
commit
1498e34f2c
1 changed files with 9 additions and 3 deletions
|
@ -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…
Reference in a new issue