- Deprecated functions (`get_look_yaw`) were replaced with newer ones.
- Add support for 3+ passengers (#4).
- Thanks, @Lazerbeak12345!
- `default` was removed from dependencies. The mod can be used more freely in other games.
* amend load print
Add a final **print to log** at the end of `init.lua` to indicate the mod was loaded successfully. This idea was derived from other mods which are specifically aimed at MT servers.
This could be useful not only for player support (e.g. in the MT forum) but would certainly be useful for MT server admins using the CLI and reading their server logs.
* amend load print with extra compatibilty
Unfortunately I do not know how to resolve a PR conversation with changing my own commit accordingly (yet).
My prior PR was aiming at compatibilty with legacy clients and servers. If you scan the MT forum you will become aware that there seem to be quite many MT 0.4 servers around which are actively used by many players. I would like to continue in using the one load print for better compatibilty with legacy MT software in the field and would use the minetest.log for all other cases where applicable.
However, the best solution may be this new piece of improved code, if I understand the MT Lua code correctly.
* amend load print with improved compatibility
This should be the more correct code now. Unfortunately I do not know how to resolve a PR conversation with changing my own commit accordingly (yet) or how to revoke a commit be GitHub web GUI.
My prior PR was aiming at compatibilty with legacy clients and servers. If you scan the MT forum you will become aware that there seem to be quite many MT 0.4 servers around which are actively used by many players. I would like to continue in using the one load print for better compatibilty with legacy MT software in the field and would use the minetest.log for all other cases where applicable.
However, the best solution may be this new piece of improved code, if I understand the MT Lua code correctly.
* Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
* Remove maximum of 3 passengers from lib_mount
* Fix up the code after actually testing it.
* Fix lint issue
* Provide a way for an API user to stop lib_mount from updating legacy
variables
* Restructure ensure_passengers_exists
- Decreases indentation level
- Makes implicit returns explicit with hopes of more readability
- Fixes lint issue?
* Change (not a == b) to a ~= b. It's convention
* Rename a function
`copya_a_passenger_to_old_api` -> `old_copy_passenger`
Resolves https://github.com/minetest-mods/lib_mount/pull/4/files#r1036365711
* Try out `new_api` change.
See: https://github.com/minetest-mods/lib_mount/pull/4#discussion_r1036364246
Co-authored-by: David Leal <halfpacho@gmail.com>
Previously, if the entity had the `can_fly` option enabled, when
going upwards or downwards, it went too fast, extremely fast, and its speed increases over time.
With this update, this no longer happens: you can customize your
own upwards and downwards maximum speed for any entity you want.
- Add LuaCheck and GitHub workflow.
- Change license to LGPLv2.1+
- Improve `README.md` and add build status badge.
- Use `mod.conf` for dependencies.
- Replace deprecated functions with newer ones.
-fixed car moving sideways caused by a shared variable,
-tweaked crash code: added enable_crash and crash_threshold variables,
-mouse steering is now default: "aux1" to toggle,
-removed is_boat in favor of terrain_type,
-tweaked mobs_redo compatablility,
-fixed speed limit enforcement