Simplified onEntry in Wall

This commit is contained in:
Bokros Bálint 2016-05-14 13:25:04 +02:00
parent c2053fae96
commit 27fa81c601

View File

@ -32,11 +32,8 @@ public class Wall extends Tile {
public void onEntry(PlayerBase playerBase) {
super.onEntry(playerBase);
if (sg == null) {
return;
} else {
if (sg != null)
sg.teleport(playerBase);
}
}
public void onExit(PlayerBase playerBase) throws IllegalStateException {