there i fixed it :woo:

This commit is contained in:
BallOfEnergy 2024-10-12 22:32:58 -05:00
parent ccebbbca24
commit 5c909e156f
4 changed files with 6 additions and 7 deletions

View File

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

View File

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

View File

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

View File

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