feat: Add initial MeshLibrary with various gridmap tiles and a base player character script.
This commit is contained in:
+4
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user