Remove ProxyCommon, re-add break without tool listener
This commit is contained in:
@@ -100,6 +100,7 @@ public final class RS {
|
||||
|
||||
MinecraftForge.EVENT_BUS.register(new NetworkNodeListener());
|
||||
MinecraftForge.EVENT_BUS.register(new NetworkListener());
|
||||
MinecraftForge.EVENT_BUS.register(new BlockListener());
|
||||
|
||||
API.instance().getStorageDiskRegistry().add(ItemStorageDiskFactory.ID, new ItemStorageDiskFactory());
|
||||
API.instance().getStorageDiskRegistry().add(FluidStorageDiskFactory.ID, new FluidStorageDiskFactory());
|
||||
|
@@ -0,0 +1,14 @@
|
||||
package com.raoulvdberge.refinedstorage.block;
|
||||
|
||||
import net.minecraftforge.event.entity.player.PlayerEvent;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
|
||||
public class BlockListener {
|
||||
// Allow break without tool
|
||||
@SubscribeEvent
|
||||
public void onHarvestCheck(PlayerEvent.HarvestCheck e) {
|
||||
if (e.getTargetBlock().getBlock() instanceof BaseBlock) {
|
||||
e.setCanHarvest(true);
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,23 +0,0 @@
|
||||
package com.raoulvdberge.refinedstorage.proxy;
|
||||
|
||||
public class ProxyCommon {
|
||||
/* TODO
|
||||
public void preInit(FMLPreInitializationEvent e) {
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
|
||||
IntegrationInventorySorter.register();
|
||||
}
|
||||
|
||||
public void init(FMLInitializationEvent e) {
|
||||
if (IntegrationCraftingTweaks.isLoaded()) {
|
||||
IntegrationCraftingTweaks.register();
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onHarvestCheck(PlayerEvent.HarvestCheck e) {
|
||||
if (e.getTargetBlock().getBlock() instanceof BlockBase) {
|
||||
e.setCanHarvest(true); // Allow break without tool
|
||||
}
|
||||
}*/
|
||||
}
|
Reference in New Issue
Block a user