From e0e1c74af017b78d6ef60fdeabd62b820cf27803 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 3 Sep 2015 01:52:00 -0400 Subject: [PATCH] v0.3.1b: updated some method usage for consistency with the GDX version --- .../shatteredpixel/shatteredpixeldungeon/levels/Level.java | 4 ++-- .../shatteredpixeldungeon/levels/traps/PitfallTrap.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 );