add patches
This commit is contained in:
parent
fc0fc9c87e
commit
daf619a8f0
1
patches/series
Normal file
1
patches/series
Normal file
@ -0,0 +1 @@
|
||||
witt_patch.diff
|
15
patches/witt_patch.diff
Normal file
15
patches/witt_patch.diff
Normal 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
|
Loading…
x
Reference in New Issue
Block a user