Help with projectile collisions with tilemap

Godot Version

4.2

Question

With the current code, the projectile just goes through, despite the code saying:

func _on_body_entered(body):
	if body.name == "World":
		queue_free()
	else:
		if body.has_method("die") and body.walive:
			body.die()
			queue_free()

My tilemap should have the collision layer and mask name World, and the code should work, but does not. Here is a picture of the current collision mask and layer names.


Sorry if this is a easy question, I am quite new to Godot and most of my code is improvised from tutorials.