243 Commits

Author SHA1 Message Date
9ce4a7aa1f
refactor: minor tweaks 2025-03-06 18:06:56 -05:00
c4454fe217
feat: add support for NoChatReports encryption 2025-03-06 13:17:01 -05:00
426c19304d
refactor(container/item_stack): use map on Option 2025-03-05 16:51:21 -05:00
e8ff6664c9
feat(client): add id field 2025-03-03 18:11:36 -05:00
7278bfe62d
feat: add/remove entity events 2025-03-03 17:20:25 -05:00
387e43e312
refactor: minor variable name changes 2025-03-03 16:47:56 -05:00
67ebdfac72
refactor(block): clean up variables 2025-03-03 07:41:43 -05:00
59e0d597a1
feat: allow loading all (C) modules 2025-03-01 23:25:59 -05:00
8162995e78
refactor!: remove_listener -> remove_listener 2025-03-01 17:00:39 -05:00
5b8e2280e3
fix(client/movemnet): allow missing goal types 2025-03-01 16:52:39 -05:00
04f5e0e8c2
fix(client/world): wrap Owneruuid in Option 2025-03-01 16:33:55 -05:00
89091a3fd5
feat: add level particles event 2025-03-01 16:02:06 -05:00
cbdca4b7c1
feat(client/movement): support inverse goal 2025-03-01 03:33:51 -05:00
663873ba59
feat(client): pass owner uuid to find_entities 2025-03-01 01:02:29 -05:00
29a8c9fcf2
feat(client): add specialized find_players method as an optimization 2025-03-01 00:22:06 -05:00
2fee108f62
fix: properly prevent deadlock on container cleanup
`ecs` was being locked once in find_entities, and another time when
`ContainerRef::close()` called by the garbage collector from table.set.
2025-02-28 23:20:48 -05:00
88141d74e7
fix: add back lua.gc_stop()
There seems to be a (more severe) deadlock again, due to commit
b55207a55936105549d2724c0723a78e9a12c45c. Need to investigate further.

This is possibly because of azalea's ContainerRef::close(), which
locks some mutex.
2025-02-28 22:49:17 -05:00
bf9891247f
refactor: style and micro performance improvements 2025-02-28 22:34:01 -05:00
3e74399e5b
refactor: rename tables to table 2025-02-28 22:04:59 -05:00
6c7156f70d
refactor: make some more things async 2025-02-28 22:02:52 -05:00
b55207a559
perf: put lua behind an arc
This prevents it from running garbage collection on every event,
drastically reducing CPU usage.
2025-02-28 20:04:27 -05:00
f572aaf958
feat: add console-subscriber feature 2025-02-27 20:22:53 -05:00
c1e4530358
feat(client): add more client information fields 2025-02-27 20:22:53 -05:00
31ccd370eb
chore(deps): downgrade some dependencies
Azalea seems to have stopped working properly after the update; some
events are not being received.

This partially backs out commit 5533d852b2f7f939d6927fd3baf8d2642924c653.
2025-02-27 19:21:32 -05:00
3e341c1f04
chore: improve compile times with -Zshare-generics=y 2025-02-27 18:00:43 -05:00
5533d852b2
chore(deps): update dependencies 2025-02-27 07:48:14 -05:00
74aac62994
style: fix unmerged import 2025-02-26 22:20:51 -05:00
76fd9ea82e
refactor(http): don't return 500 on reload error 2025-02-26 22:08:15 -05:00
d633820d19
refactor: try removing gc_stop
This used to cause deadlocks, but it's been a while with many things
rewritten. Let's try enabling it again to see if any issues surface.
Performance should increase as this was called on every event (packet?).
2025-02-26 17:38:04 -05:00
9b0f8ec406
feat(client): add menu field 2025-02-26 17:37:50 -05:00
543f0af741
refactor(lua/system): return command output as strings 2025-02-25 18:19:11 -05:00
e081813ba4
fix: flip direction table values 2025-02-25 18:12:33 -05:00
2b9bf1987b
refactor: minor improvements 2025-02-25 18:07:01 -05:00
5691afaf2d
fix(lib/inventory): use client.container 2025-02-24 22:20:07 -05:00
d7f863b680
feat: add set_health event 2025-02-24 18:27:50 -05:00
247612fad0
refactor: use a RwLock for event listeners 2025-02-24 16:56:10 -05:00
36054ced03
refactor: random cleanups and efficiency improvements 2025-02-24 01:31:51 -05:00
2ea7ec9e7e
fix(events): manipulate listeners in a task to avoid deadlocks 2025-02-23 17:18:55 -05:00
168ac1bb46
feat: switch to luajit for more features 2025-02-23 15:32:34 -05:00
b1dbfa6110
feat: add file logging via LOG_FILE environment variable 2025-02-23 15:20:15 -05:00
6e75c4e586
refactor(player): pass gamemode as u8 2025-02-23 02:49:09 -05:00
85cb2702f4
refactor: allow too many lines on handle_event 2025-02-23 02:20:28 -05:00
c959e14f80
feat: add set_passengers event 2025-02-23 02:00:05 -05:00
70ed508b0a
perf: switch to luau-jit 2025-02-22 18:57:41 -05:00
164ccd3a7f
refactor: only capitalize initial for globals 2025-02-22 16:44:24 -05:00
4e64bc6ac4
feat(client): pass entity pose in find_entities 2025-02-22 15:34:10 -05:00
3a93bb9e33
feat(client): pass entity direction in find_entities 2025-02-22 15:24:36 -05:00
550aee5578
refactor(lib): pass options from goto_player 2025-02-22 14:51:48 -05:00
3236c4c32e
feat(client): add set_position method 2025-02-22 14:51:48 -05:00
aaad1fe78a
refactor: utils -> system 2025-02-22 14:03:04 -05:00