mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
oops, bugfixes!
- Pooled buffers removed due to issues with releasing the memory. - ExtProps fixed for players/entities; improper deserialization.
This commit is contained in:
parent
9409fba056
commit
6e39abcb1a
@ -54,6 +54,8 @@ public class ExtPropPacket implements IMessage {
|
||||
|
||||
ByteBuf buf = Unpooled.buffer();
|
||||
|
||||
m.toBytes(buf);
|
||||
|
||||
HbmLivingProps props = HbmLivingProps.getData(Minecraft.getMinecraft().thePlayer);
|
||||
HbmPlayerProps pprps = HbmPlayerProps.getData(Minecraft.getMinecraft().thePlayer);
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ import api.hbm.tile.IHeatSource;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import io.netty.buffer.PooledByteBufAllocator;
|
||||
import io.netty.buffer.Unpooled;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
@ -65,7 +65,7 @@ public class TileEntityHeatBoiler extends TileEntityLoadedBase implements IBufPa
|
||||
|
||||
if(!worldObj.isRemote) {
|
||||
|
||||
this.buf = PooledByteBufAllocator.DEFAULT.buffer();
|
||||
this.buf = Unpooled.buffer();
|
||||
|
||||
buf.writeBoolean(this.hasExploded);
|
||||
|
||||
@ -151,7 +151,6 @@ public class TileEntityHeatBoiler extends TileEntityLoadedBase implements IBufPa
|
||||
@Override
|
||||
public void serialize(ByteBuf buf) {
|
||||
buf.writeBytes(this.buf);
|
||||
this.buf.release();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -24,7 +24,7 @@ import api.hbm.tile.IHeatSource;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import io.netty.buffer.PooledByteBufAllocator;
|
||||
import io.netty.buffer.Unpooled;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
@ -57,7 +57,7 @@ public class TileEntityHeatBoilerIndustrial extends TileEntityLoadedBase impleme
|
||||
|
||||
if(!worldObj.isRemote) {
|
||||
|
||||
this.buf = PooledByteBufAllocator.DEFAULT.buffer();
|
||||
this.buf = Unpooled.buffer();
|
||||
|
||||
this.setupTanks();
|
||||
this.updateConnections();
|
||||
@ -140,7 +140,6 @@ public class TileEntityHeatBoilerIndustrial extends TileEntityLoadedBase impleme
|
||||
@Override
|
||||
public void serialize(ByteBuf buf) {
|
||||
buf.writeBytes(this.buf);
|
||||
this.buf.release();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -19,7 +19,7 @@ import api.hbm.fluid.IFluidStandardTransceiver;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import io.netty.buffer.PooledByteBufAllocator;
|
||||
import io.netty.buffer.Unpooled;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
@ -52,7 +52,7 @@ public class TileEntityMachineHephaestus extends TileEntityLoadedBase implements
|
||||
|
||||
if(!worldObj.isRemote) {
|
||||
|
||||
this.buf = PooledByteBufAllocator.DEFAULT.buffer();
|
||||
this.buf = Unpooled.buffer();
|
||||
|
||||
setupTanks();
|
||||
|
||||
@ -190,7 +190,6 @@ public class TileEntityMachineHephaestus extends TileEntityLoadedBase implements
|
||||
@Override
|
||||
public void serialize(ByteBuf buf) {
|
||||
buf.writeBytes(this.buf);
|
||||
this.buf.release();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -20,7 +20,7 @@ import api.hbm.fluid.IFluidStandardTransceiver;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import io.netty.buffer.PooledByteBufAllocator;
|
||||
import io.netty.buffer.Unpooled;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
@ -77,7 +77,7 @@ public class TileEntitySteamEngine extends TileEntityLoadedBase implements IEner
|
||||
|
||||
if(!worldObj.isRemote) {
|
||||
|
||||
this.buf = PooledByteBufAllocator.DEFAULT.buffer();
|
||||
this.buf = Unpooled.buffer();
|
||||
|
||||
this.powerBuffer = 0;
|
||||
|
||||
@ -215,7 +215,6 @@ public class TileEntitySteamEngine extends TileEntityLoadedBase implements IEner
|
||||
@Override
|
||||
public void serialize(ByteBuf buf) {
|
||||
buf.writeBytes(this.buf);
|
||||
this.buf.release();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user