mirror of
https://github.com/moparisthebest/MoparClassic
synced 2025-01-08 12:08:04 -05:00
Part of issue #67
This commit is contained in:
parent
1b8e848125
commit
150b0cb814
@ -92,7 +92,7 @@ public class RangeEvent extends DelayedEvent {
|
|||||||
}
|
}
|
||||||
boolean xbow = DataConversions.inArray(Formulae.xbowIDs, bowID);
|
boolean xbow = DataConversions.inArray(Formulae.xbowIDs, bowID);
|
||||||
int arrowID = -1;
|
int arrowID = -1;
|
||||||
for (int aID : (xbow ? Formulae.boltIDs : Formulae.arrowIDs)) {
|
for (int aID : (xbow ? Formulae.getBoltIDs() : Formulae.getArrowIDs())) {
|
||||||
int slot = owner.getInventory().getLastIndexById(aID);
|
int slot = owner.getInventory().getLastIndexById(aID);
|
||||||
if (slot < 0) {
|
if (slot < 0) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user