mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Fix pumpjack tank sync
This commit is contained in:
parent
402d54d669
commit
9ee553fe14
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user