Rebuild IDebuggable to be config-agnostic, make output configurable.

This commit is contained in:
Sunstrike committed 2013-12-10 01:35:05 +00:00
1 parent 5b54ac0673
commit caa5f6f3bb
8 files changed
+99 -17

No files matched your search

+4 -4
View File
@@ -2,7 +2,8 @@ package mantle.blocks;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import mantle.blocks.iface.IDebuggable;
import mantle.debug.DebugHelper;
import mantle.debug.IDebuggable;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
@@ -28,11 +29,10 @@ public abstract class MantleBlock extends Block {
{
TileEntity te = world.getBlockTileEntity(x, y, z);
if (te instanceof IDebuggable)
{
((IDebuggable) te).sendDebugToPlayer(player);
}
DebugHelper.handleDebugData(((IDebuggable) te).getDebugInfo(player));
}
super.onBlockClicked(world, x, y, z, player);
}
}