Commit graph

259 commits

Author SHA1 Message Date
f295e31cce
fix: remove example which doesn't apply anymore 2023-11-20 17:50:38 +01:00
eef8bf3d26
feat: harder, better, faster, stronger
changed project structure: no more useless `mc` folder
refactored dispatcher: no longer weird stateful builder pattern
improved packets: don't need proto number to be created
2023-11-20 17:36:03 +01:00
63a272858a
fix: fall back protocol if missing for current 2023-11-02 06:26:33 +01:00
51f4d09898
chore: harder, better, faster, stronger 2023-11-02 05:42:42 +01:00
c1f9f7f262
fix: working chunk parsing in 1.16.5
basically refactored it a lot and rewrote almost from scratch and needs
a lot of cleanup but holy shit it just worked and it's insane and i
wasted my night on this so i better commit it before i fuck it up
2023-11-02 04:45:03 +01:00
1712826942
Merge branch 'dev' of fantabos.co:aiocraft into dev 2023-11-01 22:10:28 +01:00
63da8ddcd5
fix: generate metadata and particles, fix switch
now entity metadata and particle data are loaded from minecraft-data and
thus should just work ™️ for all proto versions

also fixed an ugly bug in switch type about string 'true' and 'false'.
"fixed" is kind of an overstatement, more like "awfully patched hoping
it's an exception and i don't need to parse numbers too" ...
2023-11-01 22:08:52 +01:00
42a03b0e57 fix: abs for distance, limit decimal points 2023-06-02 14:26:17 +02:00
97870d0b10 fix: more lenient str parsing for dimensions 2023-03-17 10:35:59 +01:00
f0be394458 feat: allow parsing dimension from string 2023-03-17 10:34:18 +01:00
e74da435ea
fix: send Position value correctly 2023-03-16 23:01:28 +01:00
eb934a5a06 feat: added clone method to BlockPos 2023-03-16 14:11:52 +01:00
7327d4764d
feat: utility method to compare BlockPos 2023-03-15 23:01:43 +01:00
10684be970
fix: hints for VarLong 2023-03-13 23:57:18 +01:00
9567201129
fix: add proper type hint for bitfield 2023-03-13 23:42:51 +01:00
9928ea7a46
fix: double implementation for position type 2023-03-13 23:04:49 +01:00
152dda2f2c
fix: guess properly bitfield size 2023-03-13 22:57:54 +01:00
49e85d47d1
fix: just in case user is null... 2023-03-06 23:12:36 +01:00
66f0b46503
fix: metadata types sorta for 1.16.5 2023-02-16 23:58:34 +01:00
717ca56f17
fix: handle properly translatable chat msgs 2023-02-16 22:07:12 +01:00
28dac56fc7
chore: added metadata types and particles 2023-02-16 22:06:52 +01:00
46b10711f9
fix: wrong if logic! false != -1 is true 2023-02-16 18:55:05 +01:00
cef2fe19ee
fix: add code field to legacy auth
means nothing but makes the logic just work
2023-02-16 18:43:01 +01:00
e3bde342d3
fix: protocol is weird 2023-02-16 18:42:46 +01:00
d6e5e7a6f6
fix: use definitions from previous protocols
It's not really elegant but it works. If a definition is missing, it's
likely because it's unchanged since last revision
2023-02-16 18:42:36 +01:00
6448e7bad4
build: recompiled proto with newer versions
still this should happen on the user machine and not in our repo!
2023-02-16 18:26:14 +01:00
2190554f71
feat: allow overriding auth and session servers 2023-02-16 18:07:21 +01:00
7bc7a14457
fix: don't login when code's missing, clear it after use 2022-08-25 19:24:27 +02:00
617a477be9
style: tabs, 2 for rs, 4 for py 2022-07-06 12:41:40 +02:00
d7107619b7
chore: renamed "as_dict" into "serialize" 2022-07-03 19:10:15 +02:00
b7b8ab0bce
fix: idk, might work? 2022-07-03 16:47:09 +02:00
93c4ddb8ca
fix: remove print, handle negative y 2022-07-03 01:00:51 +02:00
ebf0d803b6
fix: negative offset for multi block change too 2022-07-03 00:48:23 +02:00
1e5fa6215e
fix: interface definitions 2022-07-03 00:32:51 +02:00
bf4d16c526
feat: added repr and str to Item 2022-07-03 00:21:26 +02:00
2e742dd40b
fix: block indexing, added some utility methods 2022-07-02 23:59:39 +02:00
5cff6bc208
chore!: add serialize/deserialize to Item 2022-07-02 23:59:11 +02:00
14da27e52e
fix: res is not set, return code 0 2022-06-22 13:04:08 +02:00
c359e2221a
fix: safer parse_chat 2022-06-18 16:17:27 +02:00
778fbe76f3
fix: catch timed out error in auth requests 2022-06-18 16:11:06 +02:00
4d4ad4a6d6
fix: catch and handle JSONDecodeError 2022-05-31 23:00:36 +02:00
c59b11a950
fix: gitignore built wheel files 2022-05-27 10:50:32 +02:00
9c5d0aa57d
fix? why doesn't ig exist 2022-05-23 02:58:20 +02:00
7ffc69d8c2
Added automatic SRV check for host and port 2022-05-23 01:09:59 +02:00
70e89fc4a9
add set_compression to dispatcher 2022-05-23 01:09:01 +02:00
530ff373a0
Improved chunk and world methods 2022-05-23 01:08:50 +02:00
e1fab434ef
Only run CI/CD on main branch 2022-05-15 13:28:56 +02:00
4f3ce69a9e
I guess I don't really know how GH workflows work 2022-05-15 13:06:05 +02:00
5dae821c19
Added maturin default CI with only linux task enabled 2022-05-15 13:04:17 +02:00
f238d902fa
Changed build system to maturin to add rust extensions
This meant moving the python source out of src/ . I dislike this project
structure but will do for now while I think of something better.
setup.cfg is no longer needed and all options are either in pyproject.toml
or Cargo.toml. I still need to figure out a lot of stuff.

Co-authored-by: f-tlm <f-tlm@users.noreply.github.com>
2022-05-15 13:02:53 +02:00