From 5659db5636de86f12fb51e0e6f6a089245508a7c Mon Sep 17 00:00:00 2001 From: Dqu1J Date: Tue, 2 Aug 2022 03:48:30 +0300 Subject: [PATCH] Port to 1.19.1 --- gradle.properties | 6 +++--- .../additionaladditions/item/AdditionalMusicDiscItem.java | 4 ++-- .../additionaladditions/registry/AdditionalMusicDiscs.java | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gradle.properties b/gradle.properties index f1ae648..cb3ebe4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,14 +2,14 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://modmuss50.me/fabric.html - minecraft_version=1.19 + minecraft_version=1.19.1 loader_version=0.14.4 # Mod Properties - mod_version=5.0.1 + mod_version=5.0.2 maven_group=AdditionalAdditions archives_base_name=AdditionalAdditions # Dependencies - fabric_version=0.55.1+1.19 + fabric_version=0.58.5+1.19.1 modmenu_version=4.0.0 libgui_version=6.0.0-beta.5+1.19-pre1 lambdynamiclights_version=2.1.2+1.19 \ No newline at end of file diff --git a/src/main/java/dqu/additionaladditions/item/AdditionalMusicDiscItem.java b/src/main/java/dqu/additionaladditions/item/AdditionalMusicDiscItem.java index 24077f5..e12bf16 100644 --- a/src/main/java/dqu/additionaladditions/item/AdditionalMusicDiscItem.java +++ b/src/main/java/dqu/additionaladditions/item/AdditionalMusicDiscItem.java @@ -4,7 +4,7 @@ import net.minecraft.world.item.RecordItem; public class AdditionalMusicDiscItem extends RecordItem { - public AdditionalMusicDiscItem(int comparatorOutput, SoundEvent sound, Properties settings) { - super(comparatorOutput, sound, settings); + public AdditionalMusicDiscItem(int comparatorOutput, SoundEvent sound, Properties settings, int length) { + super(comparatorOutput, sound, settings, length); } } diff --git a/src/main/java/dqu/additionaladditions/registry/AdditionalMusicDiscs.java b/src/main/java/dqu/additionaladditions/registry/AdditionalMusicDiscs.java index 320298e..d26d5e6 100644 --- a/src/main/java/dqu/additionaladditions/registry/AdditionalMusicDiscs.java +++ b/src/main/java/dqu/additionaladditions/registry/AdditionalMusicDiscs.java @@ -19,9 +19,9 @@ public class AdditionalMusicDiscs { public static final SoundEvent SOUND_EVENT_1007 = new SoundEvent(IDENTIFIER_1007); public static final SoundEvent SOUND_EVENT_1507 = new SoundEvent(IDENTIFIER_1507); - public static final RecordItem MUSIC_DISC_0308 = new AdditionalMusicDiscItem(15, SOUND_EVENT_0308, new Item.Properties().tab(CreativeModeTab.TAB_MISC).stacksTo(1).rarity(Rarity.RARE)); - public static final RecordItem MUSIC_DISC_1007 = new AdditionalMusicDiscItem(15, SOUND_EVENT_1007, new Item.Properties().tab(CreativeModeTab.TAB_MISC).stacksTo(1).rarity(Rarity.RARE)); - public static final RecordItem MUSIC_DISC_1507 = new AdditionalMusicDiscItem(15, SOUND_EVENT_1507, new Item.Properties().tab(CreativeModeTab.TAB_MISC).stacksTo(1).rarity(Rarity.RARE)); + public static final RecordItem MUSIC_DISC_0308 = new AdditionalMusicDiscItem(15, SOUND_EVENT_0308, new Item.Properties().tab(CreativeModeTab.TAB_MISC).stacksTo(1).rarity(Rarity.RARE), 83); + public static final RecordItem MUSIC_DISC_1007 = new AdditionalMusicDiscItem(15, SOUND_EVENT_1007, new Item.Properties().tab(CreativeModeTab.TAB_MISC).stacksTo(1).rarity(Rarity.RARE), 102); + public static final RecordItem MUSIC_DISC_1507 = new AdditionalMusicDiscItem(15, SOUND_EVENT_1507, new Item.Properties().tab(CreativeModeTab.TAB_MISC).stacksTo(1).rarity(Rarity.RARE), 214); private static void registerSoundEvents() { Registry.register(Registry.SOUND_EVENT, IDENTIFIER_0308, SOUND_EVENT_0308);