Skip to content

Commit

Permalink
Version bump to 1.1.0, CAUTION: ALL "JUJUBE PLANT" WILL BECOME WHEAT …
Browse files Browse the repository at this point in the history
…SINCE IT IS REMOVED!
  • Loading branch information
3TUSK committed Oct 5, 2017
1 parent b212792 commit af55654
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
11 changes: 11 additions & 0 deletions src/main/java/info/tritusk/mooncakecraft/MooncakeRegistries.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -50,4 +51,14 @@ public static void onItemRegister(RegistryEvent.Register<Item> event) {
);
}

@SubscribeEvent
public static void onBlockMissing(RegistryEvent.MissingMappings<Block> event) {
for (RegistryEvent.MissingMappings.Mapping<Block> mapping : event.getAllMappings()) {
if (new ResourceLocation(MooncakeConstants.MODID, "jujube_plant").equals(mapping.key)) {
mapping.remap(Blocks.WHEAT);
break;
}
}
}

}

0 comments on commit af55654

Please sign in to comment.