mirror of
https://git.minetest.org/BuckarooBanzay/digibuilder.git
synced 2024-12-13 08:03:18 +01:00
only check buildable_to if not in creative
This commit is contained in:
parent
3a701cf3e1
commit
28fbb7e168
@ -91,6 +91,11 @@ function digibuilder.digiline_effector(pos, _, channel, msg)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local is_creative = meta:get_int("creative") == 1
|
||||||
|
local inv = meta:get_inventory()
|
||||||
|
|
||||||
|
|
||||||
|
if not is_creative then
|
||||||
-- check if node is buildable to
|
-- check if node is buildable to
|
||||||
if not node_def.buildable_to then
|
if not node_def.buildable_to then
|
||||||
digilines.receptor_send(pos, digibuilder.digiline_rules, set_channel, {
|
digilines.receptor_send(pos, digibuilder.digiline_rules, set_channel, {
|
||||||
@ -101,10 +106,6 @@ function digibuilder.digiline_effector(pos, _, channel, msg)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_creative = meta:get_int("creative") == 1
|
|
||||||
local inv = meta:get_inventory()
|
|
||||||
|
|
||||||
if not is_creative then
|
|
||||||
-- check if node is in inventory
|
-- check if node is in inventory
|
||||||
if not inv:contains_item("main", msg.name) then
|
if not inv:contains_item("main", msg.name) then
|
||||||
digilines.receptor_send(pos, digibuilder.digiline_rules, set_channel, {
|
digilines.receptor_send(pos, digibuilder.digiline_rules, set_channel, {
|
||||||
|
Loading…
Reference in New Issue
Block a user