Another attempt at fixing the sided asm issues
This commit is contained in:
parent
bc447a04eb
commit
4525c30c59
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue