Skip to content

Commit

Permalink
Fixed missing items
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Dec 31, 2022
1 parent 8e971e7 commit e683eda
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ java {
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
archivesBaseName = project.archives_base_name
archivesBaseName = project.archives_base_name + "_" + project.minecraft_version
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
Expand Down
10 changes: 8 additions & 2 deletions src/main/java/hibi/blahaj/Blahaj.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@ public class Blahaj implements ModInitializer {
@Override
public void onInitialize() {
Item.Settings settings = new Item.Settings().maxCount(1).group(ItemGroup.MISC).rarity(Rarity.RARE);
Item grayShark = Registry.register(Registry.ITEM, KLAPPAR_HAJ_ID,
new CuddlyItem(settings, String.format(TOOLTIP_PRE, KLAPPAR_HAJ_ID.getPath())));

Item grayShark = new CuddlyItem(settings, String.format(TOOLTIP_PRE, KLAPPAR_HAJ_ID.getPath()));
Item blueShark = new CuddlyItem(settings, String.format(TOOLTIP_PRE, BLAHAJ_ID));
Item bread = new CuddlyItem(settings, null);

Registry.register(Registry.ITEM, KLAPPAR_HAJ_ID, grayShark);
Registry.register(Registry.ITEM, BLAHAJ_ID, blueShark);
Registry.register(Registry.ITEM, BREAD_ID, bread);

LootTableEvents.MODIFY.register((resourceManager, lootManager, identifier, builder, lootTableSource) -> {
if (!lootTableSource.isBuiltin()) {
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Blahaj",
"description": "BLAHAJ",
"authors": [
"Nerjal",
"Nerjal Nosk",
"hibi"
],
"contact": {},
Expand All @@ -21,8 +21,8 @@
"blahaj.mixins.json"
],
"depends": {
"fabricloader": ">=0.14.5",
"fabricloader": ">=0.14.11",
"fabric": "*",
"minecraft": "1.19"
"minecraft": ">=1.19 <1.19.3"
}
}

0 comments on commit e683eda

Please sign in to comment.