mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-14 04:00:30 +00:00
8a203e7454
- Several files where @MCJack123 is the exclusive contributor. He has signed over all contributions to "any OSI-approved license". Thank you! - Various the file handle classes: Looking at these again, I don't think they contain any of the original code.
618 B
618 B
module: [kind=event] peripheral_detach
see: peripheral For the event fired when a peripheral is attached.
The @{peripheral_detach} event is fired when a peripheral is detached from a side or from a modem.
Return Values
- @{string}: The event name.
- @{string}: The side the peripheral was detached from.
Example
Prints a message when a peripheral is detached:
while true do
local event, side = os.pullEvent("peripheral_detach")
print("A peripheral was detached on side " .. side)
end