Commit Graph

240 Commits

Author SHA1 Message Date
p2r3
e81e75a6d7 ensure mob uuid uniqueness on login
Closes #51
2025-09-14 01:30:42 +03:00
p2r3
61eb38a83d fix block changes not syncing on interval 2025-09-13 21:58:03 +03:00
p2r3
bdb4e4b72c remove trailing whitespace 2025-09-13 21:55:01 +03:00
p2r3
e3589a02f0 fix player entities desyncing on join sometimes 2025-09-13 20:06:25 +03:00
p2r3
bad337a032 fix compilation error when targeting esp-idf 2025-09-13 18:26:31 +03:00
breakgimme
6f260383cd correct windows build documentation 2025-09-13 16:45:46 +03:00
p2r3
7e80e12b26 add bareiron.exe to gitignore 2025-09-13 14:24:25 +03:00
Bradlee Barnes
969f7d3974 send server brand during login
* send server brand to client

* send brand regardless of `0x02` being recieved by server or not

* send brand regardless of `0x02` being recieved by server or not
+ if statement to match previous lines

* ifdef check for brand sending

* commit main.c for ifdef check (i forgot)

* commit main.c for ifdef check (i forgot)

* change sc_pluginMessage to sc_sendPluginMessage

- added params to it for use in other cases
- other changes to fit PR reviews

* revert .gitignore

* revert unrelated changes

* send byte instead of varint for constant packet id

* gate declaration of brand string behind ifdef

* make logging consistent with codebase

---------

Co-authored-by: p2r3 <p2r3@p2r3.com>
2025-09-13 14:22:06 +03:00
p2r3
2a9e443a8d fix compilation on windows 2025-09-13 14:09:13 +03:00
anmol-patankar
8d75d0a75f fix path handling in build.bat 2025-09-13 09:01:52 +03:00
p2r3
70b3b048db improve esp compilation instructions in readme 2025-09-13 00:36:40 +03:00
fox3000foxy
0f1cadd341 add warning about instability when using modded clients
* Added Fabric Notice

* rephrase fabric warning

---------

Co-authored-by: p2r3 <41925384+p2r3@users.noreply.github.com>
2025-09-13 00:18:16 +03:00
p2r3
efac4c125d fix compilation error on label syntax quirk 2025-09-13 00:10:33 +03:00
KornineQ
fddef798e3 Don't take fall damage in creative or spectator 2025-09-12 23:08:13 +03:00
Mefiresu
808bbb26a2 Remove BlockChange from packed structs
pragma pack (push, 1) forces alignment to 1-byte.
While reordering the fields does help with memory accesses, it only
works if the compiler can ensure 2-byte alignments for this struct.
2025-09-12 23:05:10 +03:00
anmol-patankar
ba03d92ad0 fix mobs spawning in water
* Fixed underwater under lava mob spawn issue #17

* made comment changes

* minor fix

* method name change

* method change

* fixed
2025-09-12 19:53:08 +03:00
p2r3
dabb202c13 mention testing in contribution guidelines 2025-09-12 19:39:33 +03:00
CodeAsm
eef1020ad8 automate vanilla registry extraction on linux
* Adding a simple check if someone has read the readme

* semi automate the registeries generation. still requires manually downloading server.jar for eula purposes

* The mods have spoken: no spelling mistakes allowed.

* mention extract_registries script in readme

---------

Co-authored-by: p2r3 <41925384+p2r3@users.noreply.github.com>
2025-09-12 19:31:03 +03:00
fox3000foxy
81865cb7ac add string bounds check when copying player name 2025-09-12 19:04:36 +03:00
Anmol
7206dd1b11 create windows build script
* Create build.bat

* Update build.bat

* added error handling

* changed error to match build.sh

* update readme to mention windows build script

---------

Co-authored-by: zyriu1 <Suvkq@hotmail.com>
Co-authored-by: p2r3 <41925384+p2r3@users.noreply.github.com>
2025-09-12 18:41:01 +03:00
breakgimme
3d02dc02bf use libc htonll if found 2025-09-12 15:27:49 +03:00
p2r3
5b8360708c clarify memory footprint of VISITED_HISTORY 2025-09-12 15:12:46 +03:00
p2r3
5a100bcd23 disable chunk generation logging by default 2025-09-12 15:10:44 +03:00
p2r3
46a808152a document important configuration options for real servers 2025-09-12 15:09:36 +03:00
p2r3
ba11d121cf reorder coordinates in BlockChange struct 2025-09-12 14:52:49 +03:00
p2r3
a83acbda67 add option to tie movement updates to tickrate 2025-09-11 22:00:32 +03:00
p2r3
e4c0c6b6e9 fix armor not equipping from right click 2025-09-10 20:11:59 +03:00
p2r3
55da6c7d4c fix features generating when they shouldn't 2025-09-09 21:20:40 +03:00
p2r3
5c571df947 clarify details in readme 2025-09-09 19:33:52 +03:00
p2r3
125203980b add current game and protocol version to readme 2025-09-09 14:01:34 +03:00
p2r3
362f9e925b document latest build binary in readme 2025-09-09 13:59:39 +03:00
p2r3
fdb6f6dd15 add release body to build workflow 2025-09-09 13:51:00 +03:00
p2r3
52f6df468a give build workflow write permissions latest 2025-09-09 13:42:22 +03:00
p2r3
fc95f57517 select all generators when dumping registries in workflow 2025-09-09 13:39:07 +03:00
p2r3
e14692d5cf install jdk 24 during workflow 2025-09-09 13:37:38 +03:00
p2r3
5b4486f2fd generate registry headers in workflow 2025-09-09 13:32:23 +03:00
p2r3
e49904066e set up cosmopolitan build workflow 2025-09-09 13:23:52 +03:00
p2r3
d90a46c832 add note about minimum visited history size 2025-09-08 17:44:55 +03:00
p2r3
75259271f1 write readme 2025-09-07 22:32:09 +03:00
p2r3
7af7462138 add missing documentation 2025-09-07 14:36:31 +03:00
p2r3
550edbdb37 centralize configuration options 2025-09-07 14:07:12 +03:00
p2r3
5bcab2500c space out config options 2025-09-07 13:55:16 +03:00
p2r3
a72f405b7a fix not blocks not dropping their item when the held tool breaks 2025-09-06 17:26:47 +03:00
p2r3
102a7d46f8 make beef dumps opt-in via config 2025-09-02 00:33:25 +03:00
p2r3
64846381f4 add option to sync block changes on an interval 2025-09-02 00:29:21 +03:00
p2r3
7a81625cd4 sync beefdump data to disk 2025-09-02 00:27:00 +03:00
p2r3
390befe9cf fix potentially uninitialized pointers 2025-09-01 22:28:38 +03:00
p2r3
b20c9f508f return sent bytes from send_all 2025-08-31 22:25:43 +03:00
p2r3
6bef88f60d update ore generation 2025-08-31 22:23:19 +03:00
p2r3
d608014470 use global tick counter to handle regular events at different rates 2025-08-31 21:45:47 +03:00