SPIGOT-7744: Fix crash when shooting arrows in creative mode
This commit is contained in:
parent
819f7a10aa
commit
64e0ad1292
@ -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…
x
Reference in New Issue
Block a user