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