Skip to content

Connection already has raycasting request #19

Description

@19PHOBOSS98

Hi Space, found this while trying out the Range Goggles. I just started the turtle and this showed up. Restarting the world somehow fixes it:

image

code:

modem = peripheral.find("modem")
goggles = peripheral.find("goggle_link_port")

local DEBUG_TO_DRONE_CHANNEL = 9
local DRONE_TO_DEBUG_CHANNEL = 10

function transmit(cmd,args)
	modem.transmit(DRONE_TO_DEBUG_CHANNEL, DEBUG_TO_DRONE_CHANNEL, 
		{range2=item.distance})
end

while true do
	for k, v in pairs(goggles.getConnected()) do
		local item = v.raycast(300, {0, 0, 1}, false, true, true)
		print(textutils.serialize(item))
	end
	sleep(1)
end

mod version patch1-0.0.12

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions