mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
fixed some server crasheroos
This commit is contained in:
parent
adf88b70e3
commit
e373857c3a
@ -96,6 +96,7 @@ public class ItemBookLore extends Item implements IGUIProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public GuiScreen provideGUI(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
||||
return new GUIBookLore(player);
|
||||
}
|
||||
|
||||
@ -3,6 +3,8 @@ package com.hbm.packet;
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessage;
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
|
||||
import cpw.mods.fml.common.network.simpleimpl.MessageContext;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
@ -32,6 +34,7 @@ public class PermaSyncPacket implements IMessage {
|
||||
public static class Handler implements IMessageHandler<PermaSyncPacket, IMessage> {
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IMessage onMessage(PermaSyncPacket m, MessageContext ctx) {
|
||||
|
||||
try {
|
||||
|
||||
@ -223,7 +223,7 @@ public abstract class TileEntityRBMKBase extends TileEntity implements INBTPacke
|
||||
|
||||
protected void coolPassively() {
|
||||
|
||||
if(MainRegistry.proxy.getImpactFire(worldObj) > 0) {
|
||||
if(MainRegistry.proxy.getImpactFire(worldObj) > 1e-5) {
|
||||
int light = this.worldObj.getSavedLightValue(EnumSkyBlock.Sky, this.xCoord, this.yCoord, this.zCoord);
|
||||
if(heat < 20 + (480 * (light / 15))) {
|
||||
this.heat += this.passiveCooling() * 2;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user