mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
commit
94be300959
3 files changed
+9
-9
No files matched your search
@@ -1212,6 +1212,11 @@ public class Mekanism
|
||||
hooks.loadOCDrivers();
|
||||
}
|
||||
|
||||
if(Loader.isModLoaded("appliedenergistics2"))
|
||||
{
|
||||
hooks.registerAE2P2P();
|
||||
}
|
||||
|
||||
//Packet registrations
|
||||
packetHandler.initialize();
|
||||
|
||||
|
||||
@@ -469,10 +469,9 @@ public class BlockBasic extends Block implements IBlockCTM, ICustomBlockIcon
|
||||
{
|
||||
TileEntityBin bin = (TileEntityBin)world.getTileEntity(x, y, z);
|
||||
|
||||
Item tool = entityplayer.getCurrentEquippedItem().getItem();
|
||||
|
||||
if(MekanismUtils.hasUsableWrench(entityplayer, x, y, z))
|
||||
if(entityplayer.getCurrentEquippedItem() != null && MekanismUtils.hasUsableWrench(entityplayer, x, y, z))
|
||||
{
|
||||
Item tool = entityplayer.getCurrentEquippedItem().getItem();
|
||||
if(entityplayer.isSneaking())
|
||||
{
|
||||
dismantleBlock(world, x, y, z, false);
|
||||
|
||||
@@ -67,11 +67,7 @@ public final class MekanismHooks
|
||||
{
|
||||
loadCCPeripheralProviders();
|
||||
}
|
||||
|
||||
if(AE2Loaded)
|
||||
{
|
||||
hookAE2();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -155,7 +151,7 @@ public final class MekanismHooks
|
||||
}
|
||||
|
||||
@Method(modid = "appliedenergistics2")
|
||||
public void hookAE2() {
|
||||
public void registerAE2P2P() {
|
||||
String energyP2P = "add-p2p-attunement-rf-power";
|
||||
if(IC2Loaded)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user