Simplified onEntry in Wall
This commit is contained in:
parent
c2053fae96
commit
27fa81c601
@ -32,12 +32,9 @@ 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 {
|
||||
if(sg != null) return;
|
||||
|
Loading…
Reference in New Issue
Block a user