v0.6.4: fixed detach issues with the magical holster
This commit is contained in:
parent
d2ebe83ad1
commit
a6442bbb7e
|
@ -64,7 +64,11 @@ public class MagicalHolster extends Bag {
|
|||
public void onDetach( ) {
|
||||
super.onDetach();
|
||||
for (Item item : items) {
|
||||
if (item instanceof Wand) {
|
||||
((Wand)item).stopCharging();
|
||||
} else if (item instanceof MissileWeapon){
|
||||
((MissileWeapon) item).holster = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user