mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +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 {
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue