Prevent items moving while scrolling through slots with Inventory Sorter in the Crafter Manager

This commit is contained in:
raoulvdberge
2018-03-18 11:45:55 +01:00
parent 42ae53b61a
commit 207d0e851e
4 changed files with 15 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ public interface ICraftingPatternContainer {
/**
* The name of this container for categorizing in the Crafting Manager GUI.
* Can be a localized or unlocalized name.
* If it's unlocalized, it will automatically format the name.
* If it's unlocalized, it will automatically localize the name.
*
* @return the name of this container
*/

View File

@@ -0,0 +1,10 @@
package com.raoulvdberge.refinedstorage.integration.inventorysorter;
import net.minecraftforge.fml.common.event.FMLInterModComms;
public class IntegrationInventorySorter {
public static void register() {
// Prevent items moving while scrolling through slots with Inventory Sorter in the Crafter Manager
FMLInterModComms.sendMessage("inventorysorter", "slotblacklist", "com.raoulvdberge.refinedstorage.container.slot.SlotCrafterManager");
}
}

View File

@@ -27,6 +27,7 @@ import com.raoulvdberge.refinedstorage.integration.craftingtweaks.IntegrationCra
import com.raoulvdberge.refinedstorage.integration.forgeenergy.ReaderWriterHandlerForgeEnergy;
import com.raoulvdberge.refinedstorage.integration.funkylocomotion.IntegrationFunkyLocomotion;
import com.raoulvdberge.refinedstorage.integration.funkylocomotion.MoveFactoryRegisterer;
import com.raoulvdberge.refinedstorage.integration.inventorysorter.IntegrationInventorySorter;
import com.raoulvdberge.refinedstorage.integration.oc.DriverNetwork;
import com.raoulvdberge.refinedstorage.integration.oc.IntegrationOC;
import com.raoulvdberge.refinedstorage.integration.projecte.IntegrationProjectE;
@@ -264,6 +265,8 @@ public class ProxyCommon {
if (IntegrationProjectE.isLoaded()) {
IntegrationProjectE.register();
}
IntegrationInventorySorter.register();
}
public void postInit(FMLPostInitializationEvent e) {

View File

@@ -10,7 +10,7 @@
"item": "#advanced_processor"
},
"C": {
"item": "minecraft:chest"
"item": "refinedstorage:crafter"
},
"G": {
"type": "forge:ore_dict",