onExit() is now properly called in PlayerBase.move(). this fixes #5.
This commit is contained in:
parent
314428b273
commit
42467c7384
@ -38,8 +38,9 @@ public class PlayerBase implements Destroyable {
|
|||||||
{
|
{
|
||||||
if (adjtile.isSteppable())
|
if (adjtile.isSteppable())
|
||||||
{
|
{
|
||||||
adjtile.onEntry(this);
|
currentTile.onExit(this);
|
||||||
setCurrentTile(adjtile);
|
setCurrentTile(adjtile);
|
||||||
|
adjtile.onEntry(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user