From af556547c0548940a73e5e1a4cf34cf30843bd0b Mon Sep 17 00:00:00 2001 From: 3TUSK Date: Thu, 5 Oct 2017 08:29:25 -0700 Subject: [PATCH] Version bump to 1.1.0, CAUTION: ALL "JUJUBE PLANT" WILL BECOME WHEAT SINCE IT IS REMOVED! --- build.gradle | 2 +- .../tritusk/mooncakecraft/MooncakeRegistries.java | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c7b6cfb..1aa7df6 100644 --- a/build.gradle +++ b/build.gradle @@ -16,7 +16,7 @@ apply plugin: 'net.minecraftforge.gradle.forge' sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8 -version = "1.0.0" +version = "1.1.0" group = "info.tritusk" archivesBaseName = "MooncakeCraft" diff --git a/src/main/java/info/tritusk/mooncakecraft/MooncakeRegistries.java b/src/main/java/info/tritusk/mooncakecraft/MooncakeRegistries.java index 177e514..3038750 100644 --- a/src/main/java/info/tritusk/mooncakecraft/MooncakeRegistries.java +++ b/src/main/java/info/tritusk/mooncakecraft/MooncakeRegistries.java @@ -15,6 +15,7 @@ import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemSeeds; +import net.minecraft.util.ResourceLocation; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; @@ -50,4 +51,14 @@ public static void onItemRegister(RegistryEvent.Register event) { ); } + @SubscribeEvent + public static void onBlockMissing(RegistryEvent.MissingMappings event) { + for (RegistryEvent.MissingMappings.Mapping mapping : event.getAllMappings()) { + if (new ResourceLocation(MooncakeConstants.MODID, "jujube_plant").equals(mapping.key)) { + mapping.remap(Blocks.WHEAT); + break; + } + } + } + }