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 String customName;
|
||||||
|
|
||||||
private NBTTagCompound lastPackedNBT = null;
|
|
||||||
private ByteBuf lastPackedBuf = null;
|
private ByteBuf lastPackedBuf = null;
|
||||||
|
|
||||||
public TileEntityMachineBase(int slotCount) {
|
public TileEntityMachineBase(int slotCount) {
|
||||||
|
|||||||
@ -256,7 +256,6 @@ public abstract class TileEntityTurretBaseNT extends TileEntityMachineBase imple
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void serialize(ByteBuf buf) {
|
public void serialize(ByteBuf buf) {
|
||||||
super.serialize(buf);
|
|
||||||
BufferUtil.writeVec3(buf, this.tPos);
|
BufferUtil.writeVec3(buf, this.tPos);
|
||||||
buf.writeDouble(this.rotationPitch);
|
buf.writeDouble(this.rotationPitch);
|
||||||
buf.writeDouble(this.rotationYaw);
|
buf.writeDouble(this.rotationYaw);
|
||||||
@ -271,11 +270,10 @@ public abstract class TileEntityTurretBaseNT extends TileEntityMachineBase imple
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void deserialize(ByteBuf buf) {
|
public void deserialize(ByteBuf buf) {
|
||||||
super.deserialize(buf);
|
|
||||||
this.turnProgress = 2;
|
this.turnProgress = 2;
|
||||||
this.tPos = BufferUtil.readVec3(buf);
|
this.tPos = BufferUtil.readVec3(buf);
|
||||||
this.rotationPitch = buf.readDouble();
|
this.syncRotationPitch = buf.readDouble();
|
||||||
this.rotationYaw = buf.readDouble();
|
this.syncRotationYaw = buf.readDouble();
|
||||||
this.power = buf.readLong();
|
this.power = buf.readLong();
|
||||||
this.isOn = buf.readBoolean();
|
this.isOn = buf.readBoolean();
|
||||||
this.targetPlayers = buf.readBoolean();
|
this.targetPlayers = buf.readBoolean();
|
||||||
|
|||||||
@ -282,7 +282,8 @@ public class TileEntityTurretMaxwell extends TileEntityTurretBaseNT implements I
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void deserialize(ByteBuf buf) {
|
public void deserialize(ByteBuf buf) {
|
||||||
if(buf.readBoolean())
|
boolean shot = buf.readBoolean();
|
||||||
|
if(shot)
|
||||||
this.beam = 5;
|
this.beam = 5;
|
||||||
else
|
else
|
||||||
super.deserialize(buf);
|
super.deserialize(buf);
|
||||||
|
|||||||
@ -162,7 +162,8 @@ public class TileEntityTurretTauon extends TileEntityTurretBaseNT {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void deserialize(ByteBuf buf) {
|
public void deserialize(ByteBuf buf) {
|
||||||
if(buf.readBoolean())
|
boolean shot = buf.readBoolean();
|
||||||
|
if(shot)
|
||||||
this.beam = 3;
|
this.beam = 3;
|
||||||
else
|
else
|
||||||
super.deserialize(buf);
|
super.deserialize(buf);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user