Fixed dedicated server crashes
This commit is contained in:
parent
84ddf57362
commit
6cecf4c177
2 changed files with 12 additions and 2 deletions
|
@ -71,7 +71,10 @@ public class BiomesOPlenty
|
|||
BOPEntities.init();
|
||||
BOPVanillaCompat.init();
|
||||
|
||||
Localizations.loadLanguages();
|
||||
if (proxy instanceof ClientProxy)
|
||||
{
|
||||
Localizations.loadLanguages();
|
||||
}
|
||||
|
||||
// Achievement declaration
|
||||
if (BOPConfiguration.achievements)
|
||||
|
@ -81,7 +84,10 @@ public class BiomesOPlenty
|
|||
|
||||
GameRegistry.registerCraftingHandler(new BOPCraftHandler());
|
||||
|
||||
MinecraftForge.EVENT_BUS.register(new SoundHandler());
|
||||
if (proxy instanceof ClientProxy)
|
||||
{
|
||||
MinecraftForge.EVENT_BUS.register(new SoundHandler());
|
||||
}
|
||||
|
||||
BOPCrossIntegration.preInit();
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package biomesoplenty.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.particle.EffectRenderer;
|
||||
|
@ -62,6 +64,7 @@ public class BlockGrave extends Block
|
|||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean addBlockHitEffects(World worldObj, MovingObjectPosition target, EffectRenderer effectRenderer)
|
||||
{
|
||||
int i1 = worldObj.getBlockId(target.blockX, target.blockY, target.blockZ);
|
||||
|
@ -111,6 +114,7 @@ public class BlockGrave extends Block
|
|||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean addBlockDestroyEffects(World world, int x, int y, int z, int meta, EffectRenderer effectRenderer)
|
||||
{
|
||||
byte b0 = 4;
|
||||
|
|
Loading…
Reference in a new issue