Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Leash requires that the drone's inventory already has a Lead. #3705

Conversation

zeng-github01
Copy link

@zeng-github01 zeng-github01 commented Apr 13, 2024

fix #3376

Requires review and testing

@zeng-github01
Copy link
Author

This patch looks a bit rough, I don't know if there are any performance issues

@zeng-github01 zeng-github01 marked this pull request as draft April 13, 2024 09:58
…inite-leash

# Conflicts:
#	src/main/scala/li/cil/oc/server/component/UpgradeLeash.scala
@zeng-github01 zeng-github01 marked this pull request as ready for review April 13, 2024 10:03
@zeng-github01 zeng-github01 changed the title Using a Lead requires that the drone's inventory already has a Lead. Using Leash requires that the drone's inventory already has a Lead. Apr 13, 2024
@zeng-github01 zeng-github01 marked this pull request as draft April 13, 2024 16:46
@zeng-github01
Copy link
Author

zeng-github01 commented Apr 13, 2024

Use the following code to test, it has no effect

`local leash
local drone

for address, componentType in component.list("leash") do
leash = component.proxy(address)
end

for address, componentType in component.list("drone") do
drone = component.proxy(address)
end

drone.move(0,2,0)

while true do
leash.leash(0)
end`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant