Introduce utility function for deriving table fields
This commit is contained in:
@@ -117,8 +117,7 @@ local function generate(self,pos,elapsed)
|
||||
return false
|
||||
end
|
||||
|
||||
industrialtest.GeothermalGenerator=table.copy(industrialtest.ActivatedElectricMachine)
|
||||
industrialtest.internal.unpackTableInto(industrialtest.GeothermalGenerator,{
|
||||
industrialtest.GeothermalGenerator=industrialtest.internal.derive(industrialtest.ActivatedElectricMachine,{
|
||||
name="industrialtest:geothermal_generator",
|
||||
description=S("Geothermal Generator"),
|
||||
tiles={
|
||||
@@ -243,8 +242,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
industrialtest.WaterMill=table.copy(industrialtest.ElectricMachine)
|
||||
industrialtest.internal.unpackTableInto(industrialtest.WaterMill,{
|
||||
industrialtest.WaterMill=industrialtest.internal.derive(industrialtest.ElectricMachine,{
|
||||
name="industrialtest:water_mill",
|
||||
description=S("Water Mill"),
|
||||
tiles={
|
||||
|
||||
Reference in New Issue
Block a user