]> git.lizzy.rs Git - dragonblocks.git/blobdiff - game/furnace/api.js
Rework inventory rendering
[dragonblocks.git] / game / furnace / api.js
index a2d757bc22a985a9546e7cfc5c510d6cacf676ec..f04a3f05614d66cacc68aae744521de9bd9071b9 100644 (file)
@@ -1,6 +1,8 @@
 furnace.recipes = [];
-furnace.registerRecipe = function(obj){
-       if(! obj || ! obj.input || ! obj.output || ! obj.time)
+
+furnace.registerRecipe = def => {
+       if (! def || ! def.input || ! def.output || ! def.time)
                return;
-       furnace.recipes.push(obj);
-}
+
+       furnace.recipes.push(def);
+};