Disallow screwdriver rotating torches, to avoid bad torch rotations
authorAn0n3m0us <an0n3m0us@hotmail.com>
Tue, 11 Feb 2020 03:58:41 +0000 (03:58 +0000)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2020 03:58:41 +0000 (03:58 +0000)
mods/default/torch.lua

index bf0201486fba5dc405cb61b7a7322a3f634fa082..c06dee8f407f6a9e5a3f30e5d64a17fd9c2ee12f 100644 (file)
@@ -71,6 +71,7 @@ minetest.register_node("default:torch", {
        end,
        floodable = true,
        on_flood = on_flood,
+       on_rotate = false
 })
 
 minetest.register_node("default:torch_wall", {
@@ -94,6 +95,7 @@ minetest.register_node("default:torch_wall", {
        sounds = default.node_sound_wood_defaults(),
        floodable = true,
        on_flood = on_flood,
+       on_rotate = false
 })
 
 minetest.register_node("default:torch_ceiling", {
@@ -117,6 +119,7 @@ minetest.register_node("default:torch_ceiling", {
        sounds = default.node_sound_wood_defaults(),
        floodable = true,
        on_flood = on_flood,
+       on_rotate = false
 })
 
 minetest.register_lbm({