forked from Mineclonia/Mineclonia
10ce37d887
When a player joins and immediately leaves the game before a function is called by minetest.after() in mods/PLAYER/wieldview/init.lua, it gets an invalidated player object. This results in the player methods returning nil (since Minetest 5.2); perhaps surprisingly, the player is not nil. Not checking that the result of player:get_pos() is not nil could lead to a server crash if a client crashed when joining. It has been reported that a syntax error in a client side mod was enough to trigger that. |
||
---|---|---|
.. | ||
LICENSE.txt | ||
README.txt | ||
init.lua | ||
mod.conf | ||
transform.lua |
README.txt
[mod] visible wielded items [wieldview] ======================================= Makes hand wielded items visible to other players. default settings: [minetest.conf] # Set number of seconds between visible wielded item updates. wieldview_update_time = 2 # Show nodes as tiles, disabled by default wieldview_node_tiles = false Info for modders ################ Wield image transformation: To apply a simple transformation to the item in hand, add the group “wieldview_transform” to the item definition. The group rating equals one of the numbers used for the [transform texture modifier of the Lua API.