Simplified onEntry in Wall
This commit is contained in:
parent
c2053fae96
commit
27fa81c601
@ -32,11 +32,8 @@ public class Wall extends Tile {
|
|||||||
|
|
||||||
public void onEntry(PlayerBase playerBase) {
|
public void onEntry(PlayerBase playerBase) {
|
||||||
super.onEntry(playerBase);
|
super.onEntry(playerBase);
|
||||||
if (sg == null) {
|
if (sg != null)
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
sg.teleport(playerBase);
|
sg.teleport(playerBase);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onExit(PlayerBase playerBase) throws IllegalStateException {
|
public void onExit(PlayerBase playerBase) throws IllegalStateException {
|
||||||
|
Loading…
Reference in New Issue
Block a user