minetest/mods
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
..
bones Fixed partial door issue in bones. 2013-11-08 13:03:36 -08:00
bucket Call on_rightclick from buckets 2013-07-11 02:30:47 +02:00
creative Revert dig time in creative mode to 0.5 2013-11-04 18:46:39 -05:00
default Allow cactus to lay on its side also. 2013-11-08 00:56:20 -05:00
doors Pngcrush all Textures 2013-05-25 16:20:35 +02:00
dye Pngcrush all Textures 2013-05-25 16:20:35 +02:00
external_legacy Fix a typo 2013-04-12 00:51:29 +02:00
farming Add and use the stick group 2013-11-01 11:34:24 -04:00
fire Melting and freezing 2013-07-27 23:37:54 +04:00
flowers Fix typo in flower generation 2013-08-06 17:56:51 +02:00
give_initial_stuff Add initial content 2012-03-26 22:50:35 +03:00
legacy Pngcrush all Textures 2013-05-25 16:20:35 +02:00
screwdriver Add and use the stick group 2013-11-01 11:34:24 -04:00
stairs Remove trailing tabs from empty lines in stairs 2013-11-01 11:34:24 -04:00
vessels Pngcrush all Textures 2013-05-25 16:20:35 +02:00
wool Pngcrush all Textures 2013-05-25 16:20:35 +02:00