1.5 -> 1.6 migration: wrench removal registry ignore.
@@ -25,6 +25,7 @@ import com.raoulvdberge.refinedstorage.apiimpl.network.readerwriter.ReaderWriter
import com.raoulvdberge.refinedstorage.apiimpl.solderer.SoldererRecipeLoader;
import com.raoulvdberge.refinedstorage.apiimpl.storage.disk.StorageDiskFactoryFluid;
import com.raoulvdberge.refinedstorage.apiimpl.storage.disk.StorageDiskFactoryItem;
+import com.raoulvdberge.refinedstorage.apiimpl.util.OneSixMigrationHelper;
import com.raoulvdberge.refinedstorage.block.BlockBase;
import com.raoulvdberge.refinedstorage.capability.CapabilityNetworkNodeProxy;
import com.raoulvdberge.refinedstorage.gui.GuiHandler;
@@ -293,6 +294,17 @@ public class ProxyCommon {
}
}
+ @SubscribeEvent
+ public void fixItemMappings(RegistryEvent.MissingMappings<Item> e) {
+ OneSixMigrationHelper.removalHook();
+
+ for (RegistryEvent.MissingMappings.Mapping<Item> missing : e.getMappings()) {
+ if (missing.key.getResourceDomain().equals(RS.ID) && missing.key.getResourcePath().equals("wrench")) {
+ missing.ignore();
+ }
+ }
+ }
+
private void registerBlock(BlockBase block) {
blocksToRegister.add(block);
