Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ minetest.register_globalstep(function(dtime) -- This will run every tick, so aro
update_player_hud_pos(player, player_to_animtime[player])
end

if lookat then
if lookat and minetest.registered_nodes[lookat.name] ~= nil 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
Expand Down