Another attempt at fixing the sided asm issues

This commit is contained in:
Adubbz 2013-10-19 12:43:51 +11:00
parent bc447a04eb
commit 4525c30c59
1 changed files with 36 additions and 30 deletions

View File

@ -9,13 +9,18 @@ import biomesoplenty.asm.smoothing.block.BlockLeaves;
import biomesoplenty.asm.smoothing.block.BlockTallGrass; import biomesoplenty.asm.smoothing.block.BlockTallGrass;
import biomesoplenty.configuration.configfile.BOPConfigurationMisc; import biomesoplenty.configuration.configfile.BOPConfigurationMisc;
import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly; import cpw.mods.fml.relauncher.SideOnly;
public class BOPBiomeTransitionSmoothing implements IClassTransformer public class BOPBiomeTransitionSmoothing implements IClassTransformer
{ {
private static String SIDE = FMLLaunchHandler.side().name();
@Override @Override
public byte[] transform(String name, String newname, byte[] bytes) public byte[] transform(String name, String newname, byte[] bytes)
{
if (SIDE.equals("CLIENT"))
{ {
if (name.equals("net.minecraft.block.BlockFluid")) if (name.equals("net.minecraft.block.BlockFluid"))
{ {
@ -59,6 +64,7 @@ public class BOPBiomeTransitionSmoothing implements IClassTransformer
{ {
return BlockTallGrass.patchColourMultiplier(newname, bytes, true); return BlockTallGrass.patchColourMultiplier(newname, bytes, true);
} }
}
return bytes; return bytes;
} }