summaryrefslogtreecommitdiff
path: root/mesecons_powerplant
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_powerplant')
-rw-r--r--mesecons_powerplant/init.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/mesecons_powerplant/init.lua b/mesecons_powerplant/init.lua
index b7e4cde..6e3f263 100644
--- a/mesecons_powerplant/init.lua
+++ b/mesecons_powerplant/init.lua
@@ -1,4 +1,4 @@
--- The POWER_PLANT
+ -- The POWER_PLANT
minetest.register_node("mesecons_powerplant:power_plant", {
drawtype = "plantlike",
@@ -7,7 +7,7 @@ minetest.register_node("mesecons_powerplant:power_plant", {
inventory_image = "jeija_power_plant.png",
paramtype = "light",
walkable = false,
- groups = {snappy=3},
+ groups = {dig_immediate=3},
light_source = LIGHT_MAX-9,
description="Power Plant",
after_place_node = function(pos)
@@ -15,7 +15,11 @@ minetest.register_node("mesecons_powerplant:power_plant", {
end,
after_dig_node = function(pos)
mesecon:receptor_off(pos)
- end
+ end,
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
+ },
})
minetest.register_craft({