Fix highlight Y positioning using per-tile visual top tracking
Highlights were clipping into tile tops ~half the time because
_tile_heights stores the collision box height (random 0.8-1.0),
but _fit_model_to_tile scales 3D models to their XZ footprint —
so a taller-than-wide model ends up visually taller than the box.
Also fixes _update_hover nil crash: tile.get("occupantId", "")
returns null (not "") when the key exists with a null server value.
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -196,7 +196,7 @@ func _load_cache() -> void:
|
||||
return
|
||||
var text := f.get_as_text()
|
||||
f.close()
|
||||
var parsed := JSON.parse_string(text)
|
||||
var parsed : Dictionary = JSON.parse_string(text)
|
||||
if parsed is Dictionary:
|
||||
_server_configs = parsed as Dictionary
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
uid://chu58tax2blu4
|
||||
Reference in New Issue
Block a user