Skip to content

Placing farming seeds doesn't work #5

@scr267

Description

@scr267

Hi, placing farming seeds don't seem to work due to positioning requirements by the farming mod.

at https://github.com/mt-historical/lwscratch/blob/bfeeb6cc962a09a4a6951018a7a9172e40f8a011/robot_ops.lua#L480C1-L485C5

	if stack:get_name ():sub (1, 8) == "farming:" then
		pointed_thing.under = { x = place_pos.x + vec.x,
										y = place_pos.y + vec.y,
										z = place_pos.z + vec.z }
		pointed_thing.above = place_pos
	end

line 482 should become;

y = place_pos.y + vec.y - 1,

It works on my local build with this modification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions