mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-29 18:43:53 +01:00
Merge pull request #70 from afkplayer5000/afkplayer5000-patch-no-dig
Prevent digging of active tubelib nodes with node replacer etc.
This commit is contained in:
commit
0e01299f30
@ -88,6 +88,9 @@ minetest.register_node(NODE_NAME.."_active", {
|
||||
allow_metadata_inventory_take = wh.allow_metadata_inventory_take,
|
||||
allow_metadata_inventory_move = wh.allow_metadata_inventory_move,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
on_rotate = screwdriver.disallow,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
|
@ -88,6 +88,9 @@ minetest.register_node(NODE_NAME.."_active", {
|
||||
allow_metadata_inventory_take = wh.allow_metadata_inventory_take,
|
||||
allow_metadata_inventory_move = wh.allow_metadata_inventory_move,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
on_rotate = screwdriver.disallow,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
|
@ -88,6 +88,9 @@ minetest.register_node(NODE_NAME.."_active", {
|
||||
allow_metadata_inventory_take = wh.allow_metadata_inventory_take,
|
||||
allow_metadata_inventory_move = wh.allow_metadata_inventory_move,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
on_rotate = screwdriver.disallow,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
|
@ -444,6 +444,9 @@ minetest.register_node("tubelib:distributor_active", {
|
||||
on_timer = keep_running,
|
||||
on_rotate = screwdriver.disallow,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
|
@ -175,6 +175,9 @@ minetest.register_node("tubelib:pusher_active", {
|
||||
on_timer = keep_running,
|
||||
on_rotate = screwdriver.disallow,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
|
@ -354,6 +354,9 @@ minetest.register_node("tubelib_addons1:autocrafter_active", {
|
||||
},
|
||||
},
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
on_rotate = screwdriver.disallow,
|
||||
on_timer = keep_running,
|
||||
on_receive_fields = on_receive_fields,
|
||||
|
@ -193,6 +193,9 @@ minetest.register_node("tubelib_addons1:grinder_active", {
|
||||
"tubelib_front.png",
|
||||
},
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
on_rotate = screwdriver.disallow,
|
||||
on_timer = keep_running,
|
||||
on_receive_fields = on_receive_fields,
|
||||
|
@ -202,6 +202,9 @@ minetest.register_node("tubelib_addons1:liquidsampler_active", {
|
||||
'tubelib_addons1_liquidsampler.png',
|
||||
},
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
on_rotate = screwdriver.disallow,
|
||||
on_timer = keep_running,
|
||||
on_receive_fields = on_receive_fields,
|
||||
|
@ -175,6 +175,9 @@ minetest.register_node("tubelib_addons1:pusher_fast_active", {
|
||||
on_timer = keep_running,
|
||||
on_rotate = screwdriver.disallow,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
|
@ -372,6 +372,9 @@ minetest.register_node("tubelib_addons1:quarry_active", {
|
||||
on_timer = keep_running,
|
||||
on_rotate = screwdriver.disallow,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
allow_metadata_inventory_put = allow_metadata_inventory_put,
|
||||
allow_metadata_inventory_take = allow_metadata_inventory_take,
|
||||
|
||||
|
@ -413,6 +413,9 @@ minetest.register_node("tubelib_addons3:distributor_active", {
|
||||
on_timer = keep_running,
|
||||
on_rotate = screwdriver.disallow,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
|
@ -160,6 +160,9 @@ minetest.register_node("tubelib_addons3:pusher_active", {
|
||||
on_timer = keep_running,
|
||||
on_rotate = screwdriver.disallow,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
|
Loading…
Reference in New Issue
Block a user