Reinstitute missing mapping stuff
package slimeknights.tconstruct;
+import net.minecraft.item.Item;
import net.minecraftforge.common.MinecraftForge;
+import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.Loader;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
+import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.network.NetworkCheckHandler;
import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.relauncher.Side;
@@ -16,6 +19,8 @@ import org.apache.logging.log4j.Logger;
import java.util.Map;
import java.util.Random;
+import javax.annotation.Nonnull;
+
import slimeknights.mantle.common.GuiHandler;
import slimeknights.mantle.pulsar.control.PulseManager;
import slimeknights.tconstruct.common.ClientProxy;
@@ -160,4 +165,16 @@ public class TConstruct {
MinecraftForge.EVENT_BUS.register(new ConfigSync());
}
}
+
+ //Old version compatibility
+ @SubscribeEvent
+ public void missingItemMappings(RegistryEvent.MissingMappings<Item> event) {
+ for(RegistryEvent.MissingMappings.Mapping<Item> entry : event.getAllMappings()) {
+ @Nonnull
+ String path = entry.key.toString();
+ if(path.equals(Util.resource("bucket")) || path.equals(Util.resource("glow")) || path.equals(Util.resource("blood")) || path.equals(Util.resource("milk")) || path.equals(Util.resource("purpleslime")) || path.equals(Util.resource("blueslime")) || path.contains(Util.resource("molten"))) {
+ entry.ignore();
+ }
+ }
+ }
}
