feat: Add initial MeshLibrary with various gridmap tiles and a base player character script.

This commit is contained in:
Yogi Wiguna
2026-03-25 17:33:52 +08:00
parent adb3d53ca1
commit c0d52d4136
2 changed files with 12 additions and 9 deletions
+4 -1
View File
@@ -932,7 +932,10 @@ func on_stop_phase_violation():
if pos != Vector2i(-1, -1):
var cell = Vector3i(pos.x, 1, pos.y)
rpc("sync_grid_item", cell.x, cell.y, cell.z, item_id)
# MUST call sync_grid_item on Main, not Player!
var main = get_tree().get_root().get_node_or_null("Main")
if main:
main.rpc("sync_grid_item", cell.x, cell.y, cell.z, item_id)
NotificationManager.send_message(self , "STOP VIOLATION! Tiles scattered!", NotificationManager.MessageType.WARNING)