diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java index 95477a226..de8f3bbc1 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -753,13 +753,13 @@ public abstract class Level implements Bundlable { } public void uproot( int pos ) { - plants.delete(pos); + plants.remove(pos); } public Trap setTrap( Trap trap, int pos ){ Trap existingTrap = traps.get(pos); if (existingTrap != null){ - traps.delete( pos ); + traps.remove( pos ); if(existingTrap.sprite != null) existingTrap.sprite.kill(); } trap.set( pos ); diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/PitfallTrap.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/PitfallTrap.java index 11ea9f877..6a13968df 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/PitfallTrap.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/PitfallTrap.java @@ -52,7 +52,7 @@ public class PitfallTrap extends Trap { } heap.sprite.kill(); GameScene.discard(heap); - Dungeon.level.heaps.delete( pos ); + Dungeon.level.heaps.remove( pos ); } Char ch = Actor.findChar( pos );