svet
This commit is contained in:
@@ -26,7 +26,7 @@ class OceanSystem {
|
||||
}
|
||||
|
||||
update(time, delta) {
|
||||
if (!this.scene.player) return;
|
||||
if (!this.scene.player || !this.scene.terrainSystem) return;
|
||||
|
||||
const playerPos = this.scene.player.getPosition();
|
||||
const tile = this.scene.terrainSystem.getTile(playerPos.x, playerPos.y);
|
||||
@@ -83,6 +83,8 @@ class OceanSystem {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.scene.terrainSystem) return;
|
||||
|
||||
// Check if on water or near water?
|
||||
// Actually, let's allow "deploying" boat anywhere, but only moving fast on water?
|
||||
// OR: Only allow deploying on water tile.
|
||||
|
||||
Reference in New Issue
Block a user