aboutsummaryrefslogtreecommitdiff
path: root/client/map/map.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-06-23 22:22:10 +0200
committernokoe <nokoe@mailbox.org>2024-06-23 22:22:44 +0200
commita81020eb81a0fa44f6641f47bd1eeda786cc8f71 (patch)
treeb9e49d33d3025c9ab43a85866b2c614268a4cf65 /client/map/map.gd
parent485ca41108d22be82755151c1a3e596789eafbeb (diff)
downloadhurrycurry-a81020eb81a0fa44f6641f47bd1eeda786cc8f71.tar
hurrycurry-a81020eb81a0fa44f6641f47bd1eeda786cc8f71.tar.bz2
hurrycurry-a81020eb81a0fa44f6641f47bd1eeda786cc8f71.tar.zst
fix scripts
Diffstat (limited to 'client/map/map.gd')
-rw-r--r--client/map/map.gd4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/map/map.gd b/client/map/map.gd
index 1155a70c..c027fd4a 100644
--- a/client/map/map.gd
+++ b/client/map/map.gd
@@ -15,13 +15,15 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
+@tool
class_name Map
extends Node3D
var tile_by_pos: Dictionary = {}
func _ready():
- Multiplayer.connect("update_map", update)
+ if !Engine.is_editor_hint():
+ Multiplayer.connect("update_map", update)
func update(pos, tile_name, neighbors):
var instance: Floor