Commit Graph

12815 Commits

Author SHA1 Message Date
teknomunk b410c6e658 Remove debug minetest.log() 2024-11-13 20:48:58 -06:00
teknomunk 9a55986c8f Increase off-rail friction, make off-rail carts shake, remove debug print 2024-11-12 06:22:23 -06:00
teknomunk 1ec732d646 Address review comments 2024-11-12 00:59:50 +01:00
teknomunk eda99be60e Change cart punching to impulse on velocity instead of acceleration, make punch impulse larger 2024-11-12 00:59:50 +01:00
teknomunk a94a9e9bc2 Fix syntax error from rebase, fix cart tilt, change cart speed to 4 blocks/second and make into a setting, make minecart settings compatibily with upcoming dynamic rules PR (#4662) 2024-11-12 00:59:50 +01:00
teknomunk 9c8db2b995 Fix crash when train cars leave track 2024-11-12 00:59:50 +01:00
teknomunk dba226e18c Flip powered special T-junction textures to match regular rails 2024-11-12 00:59:50 +01:00
teknomunk db1f504f2e Add in working curved variants of special rails 2024-11-12 00:59:50 +01:00
teknomunk 80699b405c Make powered rails always accelerate moving carts 2024-11-12 00:59:50 +01:00
teknomunk 66936c7f07 Fix detector rail strangeness, prevent crash 2024-11-12 00:59:50 +01:00
teknomunk 2295b88e12 Use correct vectors for look directions east/west 2024-11-12 00:59:50 +01:00
teknomunk 99500513c5 Remove debug code 2024-11-12 00:59:50 +01:00
teknomunk 937884083f Fix minecart entity rotation 2024-11-12 00:59:50 +01:00
teknomunk bd07311f08 Fix crash 2024-11-12 00:59:50 +01:00
teknomunk 5fc28cb614 Make straight rails with a free end bend towards newly placed rail and form corners 2024-11-12 00:59:50 +01:00
teknomunk 73eee3e344 Finish restricting 45 degree movement code to horizontal plane 2024-11-12 00:59:50 +01:00
teknomunk 5b1b75b0fc Fix vertical movement that was hitting 45 degree curve code, reset pitch on minecarts 2024-11-12 00:59:50 +01:00
teknomunk 1f83937de9 Fix friction on slopes, fix cart reversal when timestep is very small or zero 2024-11-12 00:59:50 +01:00
teknomunk c394864546 Allow functions for _rail_acceleration, make powered rail only accelerate carts when one side of the rail is a solid block or stairs 2024-11-12 00:59:50 +01:00
teknomunk 3ede8b4b7c Remove instance of debug logging, change movement.lua function export 2024-11-12 00:59:50 +01:00
teknomunk b5892419c5 Fix crash with minecart on activator rail 2024-11-12 00:59:50 +01:00
teknomunk 6cdd72c485 Fix cart pitch when detached 2024-11-12 00:59:50 +01:00
teknomunk f4f0d01653 Add workaround to prevent random detached inventory doesn't exist warning when right-clicking entities with inventory 2024-11-12 00:59:50 +01:00
teknomunk 8622ee771f Fix right-clicking nodes while holding rail 2024-11-12 00:59:50 +01:00
teknomunk 29a619555d Add back shift+punch to immediately drop minecart 2024-11-12 00:59:50 +01:00
teknomunk 2abb7b8f35 Fix another crash, fix rail tee on texture 2024-11-12 00:59:50 +01:00
teknomunk 57bce03a33 Calculate acceleration of trains based on average of acceleration for all carts in the train, make velocity not change on slopes and 45 degree track 2024-11-12 00:59:50 +01:00
teknomunk 53e94e1c38 Prevent trains from slowing on 45 degree track 2024-11-12 00:59:50 +01:00
teknomunk 26c034b985 Add guard that prevents crash when itemstack is nil 2024-11-12 00:59:50 +01:00
teknomunk a9e1c5ad19 Silence debug prints and logging 2024-11-12 00:59:50 +01:00
teknomunk 8780c8fca6 Prevent removal of old minecarts 2024-11-12 00:59:50 +01:00
teknomunk 11ce4ad18f Add legacy node conversion to vl_legacy and update rails.lua to use it 2024-11-12 00:59:50 +01:00
teknomunk f9136730ad Make activated tnt minecarts glow in the dark, fix crash with lit tnt minecarts 2024-11-12 00:59:50 +01:00
teknomunk 89a0bd6e39 Fix a couple of crashes (TNT minecart trying to update orientation after exploding, trying to punch/push a minecart not on track) 2024-11-12 00:59:50 +01:00
teknomunk 9ca053aa2e Expand mcl_util.hopper_pull() to mcl_util.hopper_pull_to_inventory() 2024-11-12 00:59:50 +01:00
teknomunk 6142c89dd2 Add profiling code to force_get_node() 2024-11-12 00:59:50 +01:00
teknomunk 78ab49e971 Address additional review comments 2024-11-12 00:59:50 +01:00
teknomunk 7b8705acad Update API documentation to always use , add compatibility shim to mcl_minecarts.is_rail() and mcl_minecarts.ge_rail_direction() 2024-11-12 00:59:50 +01:00
teknomunk b2c74dfe1a Rewrite mcl_util.hopper_pull in terms of mcl_util.hopper_pull_to_inventory 2024-11-12 00:59:50 +01:00
teknomunk 2f4cbfca2d Correct documentation per review 2024-11-12 00:59:50 +01:00
teknomunk cf4d6257ae Switch over to using vl_legacy for item conversion in player inventories 2024-11-12 00:59:50 +01:00
teknomunk abda23c189 Fix typo 2024-11-12 00:59:50 +01:00
teknomunk 246d681880 Register rail conversions 2024-11-12 00:59:50 +01:00
teknomunk 48e610139b Implement vl_legacy deprecated function and item conversion APIs 2024-11-12 00:59:50 +01:00
teknomunk 4303697e51 Fix crashes 2024-11-12 00:59:50 +01:00
teknomunk 7d0345b785 Make old rails have a drawtype, make update lbm always run 2024-11-12 00:59:50 +01:00
teknomunk 1cec9d6436 Move the various rails to their own files, code cleanup 2024-11-12 00:59:50 +01:00
teknomunk 68bda2840a Remove undefined global for optional environmental physics 2024-11-12 00:59:50 +01:00
teknomunk 4056f5b0e2 Remove Emerge-0 warning that occurs when placing mineshafts 2024-11-12 00:59:50 +01:00
teknomunk d2ac38dba7 Restore 45 degree cart movement, remove warning about unknown global 2024-11-12 00:59:50 +01:00