fix fluid sim bounds loop
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
This commit is contained in:
parent
239af5e7ab
commit
cc08cc85d9
@ -14,6 +14,7 @@ import electrosphere.entity.EntityDataStrings;
|
|||||||
import electrosphere.entity.types.fluid.FluidChunk;
|
import electrosphere.entity.types.fluid.FluidChunk;
|
||||||
import electrosphere.renderer.shader.VisualShader;
|
import electrosphere.renderer.shader.VisualShader;
|
||||||
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
||||||
|
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -73,9 +74,9 @@ public class FluidCell {
|
|||||||
|
|
||||||
protected Vector3d getRealPos(){
|
protected Vector3d getRealPos(){
|
||||||
return new Vector3d(
|
return new Vector3d(
|
||||||
worldPos.x * FluidChunkData.CHUNK_SIZE,
|
worldPos.x * ServerTerrainChunk.CHUNK_PLACEMENT_OFFSET,
|
||||||
worldPos.y * FluidChunkData.CHUNK_SIZE,
|
worldPos.y * ServerTerrainChunk.CHUNK_PLACEMENT_OFFSET,
|
||||||
worldPos.z * FluidChunkData.CHUNK_SIZE
|
worldPos.z * ServerTerrainChunk.CHUNK_PLACEMENT_OFFSET
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -334,9 +334,9 @@ public class FluidCellManager {
|
|||||||
worldPos.z < Globals.clientWorldData.getWorldDiscreteSize()
|
worldPos.z < Globals.clientWorldData.getWorldDiscreteSize()
|
||||||
){
|
){
|
||||||
String key = getCellKey(
|
String key = getCellKey(
|
||||||
Globals.clientWorldData.convertRealToChunkSpace(chunkRealSpace.x),
|
worldPos.x,
|
||||||
Globals.clientWorldData.convertRealToChunkSpace(chunkRealSpace.y),
|
worldPos.y,
|
||||||
Globals.clientWorldData.convertRealToChunkSpace(chunkRealSpace.z)
|
worldPos.z
|
||||||
);
|
);
|
||||||
if(!keyCellMap.containsKey(key) && !hasNotRequested.contains(key) && !undrawable.contains(key) && !drawable.contains(key) &&
|
if(!keyCellMap.containsKey(key) && !hasNotRequested.contains(key) && !undrawable.contains(key) && !drawable.contains(key) &&
|
||||||
!hasRequested.contains(key)){
|
!hasRequested.contains(key)){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user