teknomunk
|
3913f13987
|
Prevent trains from slowing on 45 degree track
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
b04a4096c8
|
Add guard that prevents crash when itemstack is nil
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
3b4a96f89f
|
Silence debug prints and logging
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
80191cbbe2
|
Prevent removal of old minecarts
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
8463f58bc5
|
Add legacy node conversion to vl_legacy and update rails.lua to use it
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
0c697c8b7f
|
Make activated tnt minecarts glow in the dark, fix crash with lit tnt minecarts
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
11c2610285
|
Fix a couple of crashes (TNT minecart trying to update orientation after exploding, trying to punch/push a minecart not on track)
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
195d4540e3
|
Expand mcl_util.hopper_pull() to mcl_util.hopper_pull_to_inventory()
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
10e39340d1
|
Add profiling code to force_get_node()
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
342128ced6
|
Address additional review comments
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
f0a835b830
|
Update API documentation to always use , add compatibility shim to mcl_minecarts.is_rail() and mcl_minecarts.ge_rail_direction()
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
eb5d260578
|
Rewrite mcl_util.hopper_pull in terms of mcl_util.hopper_pull_to_inventory
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
144227e524
|
Correct documentation per review
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
3c633d70ae
|
Switch over to using vl_legacy for item conversion in player inventories
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
f23e4d523b
|
Fix typo
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
ef99c90672
|
Register rail conversions
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
50bb44c420
|
Implement vl_legacy deprecated function and item conversion APIs
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
b6bac12ba9
|
Fix crashes
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
7ce3dfc206
|
Make old rails have a drawtype, make update lbm always run
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
946a294bff
|
Move the various rails to their own files, code cleanup
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
b148d5ca22
|
Remove undefined global for optional environmental physics
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
f841ce942a
|
Remove Emerge-0 warning that occurs when placing mineshafts
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
8d756fabd4
|
Restore 45 degree cart movement, remove warning about unknown global
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
9ae14d791a
|
Complete rework of curve/tee rail direction functions
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
8bb2928454
|
Rework rail_dir_curve to significantly reduce code size
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
8932a6a1ed
|
Convert curved rails direction code to use fourdir
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
d0603d4f5e
|
Change verticle offset for testing reattaching to rail to 0.55, which is a bit more than the stair step height
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
17c1ae64dd
|
Fix cart detaching without unregistering from everything
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
71fef05b15
|
Fix typo, set use_texture_alpha = clip for all rail
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
f95dc735da
|
Fix several undefined global warnings, fix cart movement when over maximum speed, fix cart reattachment to sloped track
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
d0a96f2cbc
|
Revert changed made to debug minecart-updates integration into tsm_railcorridors
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
29bc4966a0
|
Make punch move minecarts a little, comment out more debug prints
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
48f7999497
|
Fix visual artifacts on the sides of rails
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
c7390d26c0
|
Stop carts from reversing when they stop, make stopped carts try to start moving in the direction the player is facing
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
ad377e2815
|
Fix crash after entering a minecart not on rails
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
8cb8b3a58b
|
Fix placed rail conversion, start automatic inventory rail conversion
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
3913bd10bd
|
Fix players repelling carts with new player metadata system
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
dd7b12cc20
|
Cleanup debug prints
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
fb881c52a8
|
Add documentation for newly exposed attach_driver
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
1135b648d7
|
Add persistent player-specific metadata into mcl_playerinfo, simple cart reattachment (only exists if the luaentity for the cart exists when the player logs in)
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
cd60a4691f
|
More fixes for minecart-hopper movement
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
e37caa22a2
|
Get rail placement creating corners that lead into a downward sloped rail
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
5bcbafb201
|
Create mcl_util.metadata_timer, fix crashes, add checks to prevent hoppers from pulling from carts that are not in the square above it
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
031ca8e576
|
Fix hopper-minecart interaction, convert ipairs(table) to use for i=1,#table instead
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
31ca4384e8
|
Update mineshafts for new rail and minecarts, add loot to generated chest and hopper minecarts (and remove notes about a hack)
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
9718bd8861
|
Give carts a small vertical lift when pushed to allow them to get back on rails
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
10dc8b88da
|
Stop rail from being placed directly above rail (floating in air)
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
2dae28269c
|
Fix sloped power,activator and detector rails, remove debug print
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
2a540ab0b4
|
Modify mcl_entity_invs to add support for save/load items hooks in entities, add save/load hooks to minecarts to store item list in the minecart data and not in the entity data so that respawn doesn't destroy items
|
2024-09-07 16:57:08 +02:00 |
teknomunk
|
0086076ce4
|
Add documentation on the rail
|
2024-09-07 16:57:08 +02:00 |