minetest/mods/bones
0gb.us bf1d0ccfd8 Fixed partial door issue in bones.
https://f.cloud.github.com/assets/950942/44526/bcc65de0-56c7-11e2-905e-d8a82d3e44a6.png

When a node's can_dig() function is checked, it only tells if that player can dig the node. However, bones uses this function, then assumes the node can be dug by a nil player, as opposed to having the player himself/herself dig the node. This assumption isn't always accurate, and results in partial doors in some cases, as depicted in the screenshot above. Basically, the player themselves can dig the locked door, but the nil player cannot, resulting in the door's after_dig_node() not getting called

This patch fixes this issue by assuming the nil player cannot dig any node that specifies a can_dig() function. This allows nodes that prefer to limit who can dig them to function as usual (such as locked doors) while still allowing bones to remove the majority of nodes (including unlocked doors) with no error.
2013-11-08 13:03:36 -08:00
..
textures Pngcrush all Textures 2013-05-25 16:20:35 +02:00
depends.txt Add bones mod 2013-05-18 16:06:57 +02:00
init.lua Fixed partial door issue in bones. 2013-11-08 13:03:36 -08:00
README.txt Add bones mod 2013-05-18 16:06:57 +02:00

Minetest 0.4 mod: bones
=======================

License of source code:
-----------------------
Copyright (C) 2012 PilzAdam

WTFPL

License of media (textures and sounds)
--------------------------------------
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
http://creativecommons.org/licenses/by-sa/3.0/

Authors of media files
----------------------
Bad_Command_