add patches

This commit is contained in:
Gitea 2021-03-09 10:23:30 +01:00
parent fc0fc9c87e
commit daf619a8f0
No known key found for this signature in database
GPG Key ID: A32BA3C84B90E0FC
2 changed files with 16 additions and 0 deletions

1
patches/series Normal file
View File

@ -0,0 +1 @@
witt_patch.diff

15
patches/witt_patch.diff Normal file
View File

@ -0,0 +1,15 @@
mod fix witt: add support for unknown nodes
Index: survival-mods/witt/init.lua
===================================================================
--- survival-mods.orig/witt/init.lua
+++ survival-mods/witt/init.lua
@@ -20,7 +20,8 @@ minetest.register_globalstep(function(dt
update_player_hud_pos(player, player_to_animtime[player])
end
- if lookat then
+ if lookat and minetest.registered_nodes[lookat.name] ~= nil then
+ --if lookat then
if player_to_cnode[player] ~= lookat.name then -- Only do anything if they are looking at a different type of block than before
player_to_animtime[player] = nil -- Reset the animation
local nodename, mod = describe_node(lookat) -- Get the details of the block in a nice looking way