mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
there i fixed it :woo:
This commit is contained in:
parent
ccebbbca24
commit
5c909e156f
@ -23,7 +23,6 @@ public abstract class TileEntityMachineBase extends TileEntityLoadedBase impleme
|
||||
|
||||
private String customName;
|
||||
|
||||
private NBTTagCompound lastPackedNBT = null;
|
||||
private ByteBuf lastPackedBuf = null;
|
||||
|
||||
public TileEntityMachineBase(int slotCount) {
|
||||
|
||||
@ -256,7 +256,6 @@ public abstract class TileEntityTurretBaseNT extends TileEntityMachineBase imple
|
||||
|
||||
@Override
|
||||
public void serialize(ByteBuf buf) {
|
||||
super.serialize(buf);
|
||||
BufferUtil.writeVec3(buf, this.tPos);
|
||||
buf.writeDouble(this.rotationPitch);
|
||||
buf.writeDouble(this.rotationYaw);
|
||||
@ -271,11 +270,10 @@ public abstract class TileEntityTurretBaseNT extends TileEntityMachineBase imple
|
||||
|
||||
@Override
|
||||
public void deserialize(ByteBuf buf) {
|
||||
super.deserialize(buf);
|
||||
this.turnProgress = 2;
|
||||
this.tPos = BufferUtil.readVec3(buf);
|
||||
this.rotationPitch = buf.readDouble();
|
||||
this.rotationYaw = buf.readDouble();
|
||||
this.syncRotationPitch = buf.readDouble();
|
||||
this.syncRotationYaw = buf.readDouble();
|
||||
this.power = buf.readLong();
|
||||
this.isOn = buf.readBoolean();
|
||||
this.targetPlayers = buf.readBoolean();
|
||||
|
||||
@ -282,7 +282,8 @@ public class TileEntityTurretMaxwell extends TileEntityTurretBaseNT implements I
|
||||
|
||||
@Override
|
||||
public void deserialize(ByteBuf buf) {
|
||||
if(buf.readBoolean())
|
||||
boolean shot = buf.readBoolean();
|
||||
if(shot)
|
||||
this.beam = 5;
|
||||
else
|
||||
super.deserialize(buf);
|
||||
|
||||
@ -162,7 +162,8 @@ public class TileEntityTurretTauon extends TileEntityTurretBaseNT {
|
||||
|
||||
@Override
|
||||
public void deserialize(ByteBuf buf) {
|
||||
if(buf.readBoolean())
|
||||
boolean shot = buf.readBoolean();
|
||||
if(shot)
|
||||
this.beam = 3;
|
||||
else
|
||||
super.deserialize(buf);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user