Mineclonia/mods/PLAYER/wieldview
Nils Dagsson Moskopp 10ce37d887
Fix server crash by client leaving after joining
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.
2021-08-22 04:21:35 +02:00
..
LICENSE.txt Update wieldview mod (wieldview_transform group) 2020-03-29 14:52:12 +02:00
README.txt Update wieldview mod (wieldview_transform group) 2020-03-29 14:52:12 +02:00
init.lua Fix server crash by client leaving after joining 2021-08-22 04:21:35 +02:00
mod.conf Move data from deprecated files to mod.conf 2021-05-16 13:44:04 +02:00
transform.lua Fix potion names, Wuzzy/MineClone2#829 2020-09-08 07:21:29 +04:00

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.