Introduce utility function for deriving table fields
This commit is contained in:
@@ -15,8 +15,7 @@
|
||||
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
local S=minetest.get_translator("industrialtest")
|
||||
industrialtest.Reactor=table.copy(industrialtest.ActivatedElectricMachine)
|
||||
industrialtest.internal.unpackTableInto(industrialtest.Reactor,{
|
||||
industrialtest.Reactor=industrialtest.internal.derive(industrialtest.ActivatedElectricMachine,{
|
||||
name="industrialtest:nuclear_reactor",
|
||||
description=S("Nuclear Reactor"),
|
||||
tiles={
|
||||
@@ -366,8 +365,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
industrialtest.ReactorChamber=table.copy(industrialtest.Machine)
|
||||
industrialtest.internal.unpackTableInto(industrialtest.ReactorChamber,{
|
||||
industrialtest.ReactorChamber=industrialtest.internal.derive(industrialtest.Machine,{
|
||||
name="industrialtest:nuclear_reactor_chamber",
|
||||
description=S("Nuclear Reactor Chamber"),
|
||||
tiles={"industrialtest_machine_block.png^industrialtest_nuclear_reactor_top.png"},
|
||||
|
||||
Reference in New Issue
Block a user