Always use relative coordinates in AddBlock
+ Pass block, use relatives * Fixes everything immediately converting abs back to rel and getting block, when these data were already available
This commit is contained in:
@@ -309,7 +309,7 @@ void cFloodyFluidSimulator::SpreadToNeighbor(cChunk * a_NearChunk, int a_RelX, i
|
||||
// Spread:
|
||||
FLUID_FLOG(" Spreading to {0} with meta {1}", absPos, a_NewMeta);
|
||||
a_NearChunk->SetBlock(relPos, m_FluidBlock, a_NewMeta);
|
||||
m_World.GetSimulatorManager()->WakeUp(absPos, a_NearChunk);
|
||||
m_World.GetSimulatorManager()->WakeUp(*a_NearChunk, relPos);
|
||||
|
||||
HardenBlock(a_NearChunk, relPos, m_FluidBlock, a_NewMeta);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user