Commit Graph

12 Commits

Author SHA1 Message Date
teknomunk
7266eb7fd7 Replace _puncher with _owner, rework projectile code to make _owner a string, copy mcl_util.gen_uuid() from minecart branch, add mcl_util.get_entity_id(), fix crash 2024-12-01 16:41:06 +01:00
teknomunk
50a3c33884 Fix crashes in mcl_throwing 2024-12-01 16:41:06 +01:00
the-real-herowl
b25d2ef31d Fix throwables' punch allow check 2024-12-01 16:41:06 +01:00
teknomunk
ff5285d151 Make egg and snowball stack count match master 2024-12-01 16:41:06 +01:00
teknomunk
e20da5d2d4 Fix player-mcl_throwing collisions, fix chick spawning on egg collisions, luacheck fixes 2024-12-01 16:41:06 +01:00
teknomunk
3cd9da98a7 Fix luacheck findings for this PR: remove unused variables, remove overwritten value, add missing dependencies, fix undefined variable usage 2024-12-01 16:41:06 +01:00
teknomunk
220594e1c2 Make snowballs have the same collision conditions as before 2024-12-01 16:41:06 +01:00
teknomunk
ef8f88472f Convert flying bobber to vl_projectile, modify mcl_throwing.register_throwable_object() to check for _vl_projectile field 2024-12-01 16:41:06 +01:00
teknomunk
a69db8c31e Resolve more review comments, fix crash 2024-12-01 16:41:06 +01:00
teknomunk
eabfe441e4 Start mcl_bows:arrow_entity refactor 2024-12-01 16:41:06 +01:00
teknomunk
1adcd65491 Remove _thrower from vl_projectile (uses self._vl_projectile.owner instead), reorder some code 2024-12-01 16:41:06 +01:00
teknomunk
0d86d4e0a1 Finish reworking all items in mcl_throwing 2024-12-01 16:41:06 +01:00