forked from mrkubax10/industrialtest
Introduce utility function for deriving table fields
This commit is contained in:
+2
-4
@@ -38,8 +38,7 @@ local function onTreetapUse(user,pointed)
|
||||
end
|
||||
|
||||
local S=minetest.get_translator("industrialtest")
|
||||
industrialtest.Treetap=table.copy(industrialtest.Tool)
|
||||
industrialtest.internal.unpackTableInto(industrialtest.Treetap,{
|
||||
industrialtest.Treetap=industrialtest.internal.derive(industrialtest.Tool,{
|
||||
name="industrialtest:treetap",
|
||||
define={onPlace=true},
|
||||
description=S("Treetap"),
|
||||
@@ -65,8 +64,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
industrialtest.ElectricTreetap=table.copy(industrialtest.ElectricTool)
|
||||
industrialtest.internal.unpackTableInto(industrialtest.ElectricTreetap,{
|
||||
industrialtest.ElectricTreetap=industrialtest.internal.derive(industrialtest.ElectricTool,{
|
||||
name="industrialtest:electric_treetap",
|
||||
define={onPlace=true},
|
||||
description=S("Electric Treetap"),
|
||||
|
||||
Reference in New Issue
Block a user