fixed some server crasheroos

This commit is contained in:
Bob 2022-11-12 11:32:44 +01:00
parent adf88b70e3
commit e373857c3a
3 changed files with 5 additions and 1 deletions

View File

@ -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);
}

View File

@ -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 {

View File

@ -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;