V0.2.0c : corrected rotberry seed pickup behaviour

This commit is contained in:
Evan Debenham 2014-09-21 16:38:14 -04:00
parent 8aa2b5c8a2
commit bf50d67912

View File

@ -19,6 +19,7 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs;
import java.util.ArrayList; import java.util.ArrayList;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.watabou.noosa.audio.Sample; import com.watabou.noosa.audio.Sample;
import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
@ -351,8 +352,8 @@ public class Wandmaker extends Mob.NPC {
} }
@Override @Override
public boolean collect( Bag container ) { public boolean doPickUp( Hero hero ) {
if (super.collect( container )) { if (super.doPickUp(hero)) {
if (Dungeon.level != null) { if (Dungeon.level != null) {
for (Mob mob : Dungeon.level.mobs) { for (Mob mob : Dungeon.level.mobs) {