diff --git a/addons/block_code/blocks/communication/area2d_on_entered.tres b/addons/block_code/blocks/communication/area2d_on_entered.tres index 7b358968..66e926cf 100644 --- a/addons/block_code/blocks/communication/area2d_on_entered.tres +++ b/addons/block_code/blocks/communication/area2d_on_entered.tres @@ -11,8 +11,7 @@ category = "Communication | Methods" type = 1 variant_type = 0 display_template = "when this node collides with [something: OBJECT]" -code_template = "func _on_body_entered(something: Node2D): -" +code_template = "func _on_body_entered(something: Node2D):" defaults = {} signal_name = "body_entered" scope = "" diff --git a/addons/block_code/blocks/communication/area2d_on_exited.tres b/addons/block_code/blocks/communication/area2d_on_exited.tres index 7e959b17..1af61a60 100644 --- a/addons/block_code/blocks/communication/area2d_on_exited.tres +++ b/addons/block_code/blocks/communication/area2d_on_exited.tres @@ -11,8 +11,7 @@ category = "Communication | Methods" type = 1 variant_type = 0 display_template = "when this node stops colliding with [something: OBJECT]" -code_template = "func _on_body_exited(something: Node2D): -" +code_template = "func _on_body_exited(something: Node2D):" defaults = {} signal_name = "body_exited" scope = "" diff --git a/addons/block_code/blocks/communication/rigidbody2d_on_entered.tres b/addons/block_code/blocks/communication/rigidbody2d_on_entered.tres index b9859c3c..9ffcfaf6 100644 --- a/addons/block_code/blocks/communication/rigidbody2d_on_entered.tres +++ b/addons/block_code/blocks/communication/rigidbody2d_on_entered.tres @@ -11,8 +11,7 @@ category = "Communication | Methods" type = 1 variant_type = 0 display_template = "when this node collides with [something: OBJECT]" -code_template = "func _on_body_entered(something: Node2D): -" +code_template = "func _on_body_entered(something: Node2D):" defaults = {} signal_name = "body_entered" scope = "" diff --git a/addons/block_code/blocks/communication/rigidbody2d_on_exited.tres b/addons/block_code/blocks/communication/rigidbody2d_on_exited.tres index 7d8cf419..89638d96 100644 --- a/addons/block_code/blocks/communication/rigidbody2d_on_exited.tres +++ b/addons/block_code/blocks/communication/rigidbody2d_on_exited.tres @@ -11,8 +11,7 @@ category = "Communication | Methods" type = 1 variant_type = 0 display_template = "when this node stops colliding with [something: OBJECT]" -code_template = "func _on_body_exited(something: Node2D): -" +code_template = "func _on_body_exited(something: Node2D):" defaults = {} signal_name = "body_exited" scope = "" diff --git a/tests/test_code_generation.gd b/tests/test_code_generation.gd index b97f933f..3f8490a5 100644 --- a/tests/test_code_generation.gd +++ b/tests/test_code_generation.gd @@ -232,7 +232,6 @@ func test_signal_script(): body_entered.connect(_on_body_entered) func _on_body_entered(something: Node2D): - print('Body entered!') """