Predict MiningTool liquid collection

This commit is contained in:
Kae 2023-08-19 20:57:55 +10:00
parent d65bc3cc8d
commit d2ec7f37c1

View File

@ -1344,6 +1344,10 @@ void WorldClient::collectLiquid(List<Vec2I> const& tilePositions, LiquidId liqui
if (!inWorld())
return;
TileModification modification = PlaceLiquid{ EmptyLiquidId, 0.0f };
for (auto& pos : tilePositions)
informTilePrediction(pos, modification);
m_outgoingPackets.append(make_shared<CollectLiquidPacket>(tilePositions, liquidId));
}