+3
scripts/world/item_entity.gd
+3
scripts/world/item_entity.gd
···
46
46
target_position.y = floor(position.y / TILE_SIZE) * TILE_SIZE + TILE_SIZE*1.5
47
47
World.Direction.Up:
48
48
target_position.y = floor(position.y / TILE_SIZE) * TILE_SIZE - TILE_SIZE/2
49
+
50
+
if !world.custom_data(target_position, "can_hold_item") or world.get_item(target_position) != null:
51
+
target_position = position
49
52
50
53
func update_process(delta):
51
54
if not process_can_apply():