bug: [TITLE]“onEvent”disable #111

Closed
opened 2024-04-29 15:50:53 +08:00 by Dawekis · 4 comments
Dawekis commented 2024-04-29 15:50:53 +08:00 (Migrated from github.com)

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Checklist

[ ] I am running the latest version.
Tick the box if you are running the latest version!

**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Additional context** Add any other context about the problem here. **Checklist** [ ] I am running the latest version. Tick the box if you are running the latest version!
Dawekis commented 2024-04-29 15:54:22 +08:00 (Migrated from github.com)

I want use "onEvent" to create custom events, but, no effect, even following the case on the wiki.

I want use "onEvent" to create custom events, but, no effect, even following the case on the wiki.
Dawekis commented 2024-04-29 15:58:43 +08:00 (Migrated from github.com)

{EC0602C6-CBB1-4250-BE7F-B731E314C5D3}

![{EC0602C6-CBB1-4250-BE7F-B731E314C5D3}](https://github.com/Pyroxenium/Basalt/assets/115648743/07b5ea4c-b125-4895-acda-6bdde3899bc5)
NoryiE commented 2024-04-29 16:05:34 +08:00 (Migrated from github.com)

I've tested it and everything seems to work. Are you sure you are sending rednet events? Also if you want you can try

basalt.onEvent(function(event, side, ...)
basalt.debug(event)
end)

This should also work.

I've tested it and everything seems to work. Are you sure you are sending rednet events? Also if you want you can try ```lua basalt.onEvent(function(event, side, ...) basalt.debug(event) end) ``` This should also work.
Dawekis commented 2024-04-29 16:15:43 +08:00 (Migrated from github.com)

Thanks of NoryiE!

Thanks of NoryiE!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GitHub/Basalt#111
No description provided.