@@ -36,17 +36,6 @@ public class Wrapped {
3636 this .woodName = woodName ;
3737 }
3838
39- // public Wrapped id(KubeResourceLocation _id) {
40- // String namespace = id.wrapped().getNamespace();
41- // // if (namespace.equals("kubejs")) {
42- // // namespace = this.type.id.getNamespace();
43- // // }
44- // var idWithoutType = ResourceLocation.fromNamespaceAndPath(namespace,
45- // _id.wrapped().getPath());
46- // var id = idWithoutType.withPrefix(this.type.id.getPath() + "/");
47- // return this;
48- // }
49-
5039 private String _recipeId ;
5140 private Item _plank ;
5241 private Item _strippedLog ;
@@ -236,7 +225,7 @@ public WoodTypeEntry toEntry() throws IllegalArgumentException {
236225 throw new IllegalArgumentException ("Need a pressurePlate" );
237226 }
238227
239- var builder = new WoodTypeEntry .Builder (this .modId , this .woodName )
228+ return new WoodTypeEntry .Builder (this .modId , this .woodName )
240229 .planks (this ._plank , this ._recipeId + "_planks" )
241230 .log (Items .OAK_LOG ).removeCharcoalRecipe ()
242231 .strippedLog (this ._strippedLog )
@@ -256,14 +245,14 @@ public WoodTypeEntry toEntry() throws IllegalArgumentException {
256245 .pressurePlate (this ._pressurePlate , this ._recipeId + "_pressure_plate" )
257246 .registerAllMaterialInfo ()
258247 .build ();
259- return builder ;
260248 }
261249
262- boolean wasRegisted = false ;
250+ boolean wasRegistered = false ;
263251
264252 @ HideFromJS
265253 public void register () {
266- if (!this .wasRegisted ) {
254+ if (!this .wasRegistered ) {
255+ this .wasRegistered = true ;
267256 try {
268257 woods .add (this .toEntry ());
269258 } catch (Exception e ) {
@@ -273,7 +262,7 @@ public void register() {
273262 } else
274263 GTCEu .LOGGER .warn ("Tried registering a wood type twice!" );
275264 }
276- };
265+ }
277266
278267 public Wrapped register (String modId , String woodName ) {
279268 var wrap = new Wrapped (modId , woodName );
0 commit comments