mirror of
https://git.minetest.org/BuckarooBanzay/digibuilder.git
synced 2024-12-12 05:33:19 +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
|
||||
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
|
||||
if not node_def.buildable_to then
|
||||
digilines.receptor_send(pos, digibuilder.digiline_rules, set_channel, {
|
||||
@ -101,10 +106,6 @@ function digibuilder.digiline_effector(pos, _, channel, msg)
|
||||
return
|
||||
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
|
||||
if not inv:contains_item("main", msg.name) then
|
||||
digilines.receptor_send(pos, digibuilder.digiline_rules, set_channel, {
|
||||
|
Loading…
Reference in New Issue
Block a user