Fix pumpjack tank sync

This commit is contained in:
George Paton 2024-08-19 12:25:24 +10:00
parent 402d54d669
commit 9ee553fe14

View File

@ -112,12 +112,10 @@ public class TileEntityMachinePumpjack extends TileEntityOilDrillBase {
} }
@Override @Override
public void sendUpdate() { public void networkPack(NBTTagCompound nbt, int range) {
NBTTagCompound data = new NBTTagCompound(); nbt.setFloat("speed", this.indicator == 0 ? (5F + (2F * this.speedLevel)) + (this.overLevel - 1F) * 10: 0F);
data.setLong("power", power);
data.setInteger("indicator", this.indicator); super.networkPack(nbt, range);
data.setFloat("speed", this.indicator == 0 ? (5F + (2F * this.speedLevel)) + (this.overLevel - 1F) * 10: 0F);
this.networkPack(data, 25);
} }
@Override @Override