summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2020-04-30 01:00:41 -0500
committercheapie <no-email-for-you@example.com>2020-04-30 01:00:41 -0500
commit889b83ac24dac0b4b608cd03e09334b79053712c (patch)
treedf4d38d17bf61449a63ba0b228bb70f0cd66d233
parentc8eb88f2dac95e41937ef08b3ccf10d9e8d8efba (diff)
downloadprinter-889b83ac24dac0b4b608cd03e09334b79053712c.tar
printer-889b83ac24dac0b4b608cd03e09334b79053712c.tar.gz
printer-889b83ac24dac0b4b608cd03e09334b79053712c.tar.bz2
printer-889b83ac24dac0b4b608cd03e09334b79053712c.tar.xz
printer-889b83ac24dac0b4b608cd03e09334b79053712c.zip
Add compatibility with digistuff's channel copier
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index ff96202..5cd17e6 100644
--- a/init.lua
+++ b/init.lua
@@ -46,6 +46,7 @@ minetest.register_node("printer:printer",{
groups = {
dig_immediate = 2,
},
+ _digistuff_channelcopier_fieldname = "channel",
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:get_inventory():set_size("paper",1)
@@ -193,6 +194,7 @@ minetest.register_node("printer:receipt_printer",{
groups = {
dig_immediate = 2,
},
+ _digistuff_channelcopier_fieldname = "channel",
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:get_inventory():set_size("paper",1)