Skip to content

Commit

Permalink
Hopefully easier to read
Browse files Browse the repository at this point in the history
  • Loading branch information
StellarWitch7 committed Aug 28, 2024
1 parent 8975468 commit c95d355
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/world/vanillyn/entity/bangboo/BangbooType.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public static <T extends Bangboo> BangbooType<T> register(String name, EntityTyp
var coreItem = Registry.register(Registries.ITEM,
BangbooMod.id(name),
new BangbooCore<>(entityType, rating));
return Registry.register(REGISTRY, BangbooMod.id(name), new BangbooType<>(entityType, coreItem, BangbooMod.id("textures/entity/bangboo/%s.png".formatted(name)), rating));
return Registry.register(REGISTRY,
BangbooMod.id(name),
new BangbooType<>(entityType,
coreItem,
BangbooMod.id("textures/entity/bangboo/%s.png".formatted(name)),
rating));
}
}

0 comments on commit c95d355

Please sign in to comment.