From 4be41f1b048bcfda4b86fa0309c24cbe8aa40bb5 Mon Sep 17 00:00:00 2001 From: austin Date: Wed, 4 Sep 2024 20:15:32 -0400 Subject: [PATCH] remove unused functions --- docs/src/progress/renderertodo.md | 5 +++ .../client/terrain/cells/DrawCell.java | 45 ------------------- 2 files changed, 5 insertions(+), 45 deletions(-) diff --git a/docs/src/progress/renderertodo.md b/docs/src/progress/renderertodo.md index b41d0cc1..dcfcb5e1 100644 --- a/docs/src/progress/renderertodo.md +++ b/docs/src/progress/renderertodo.md @@ -683,6 +683,11 @@ Fix AttachUtils NPE bug Work on testing stability Viewport loading +(09/04/2024) +Fix viewport realm server data cell not being flagged as ready +Fix NPEs on property lookups on entities +Unit tests for above + # TODO diff --git a/src/main/java/electrosphere/client/terrain/cells/DrawCell.java b/src/main/java/electrosphere/client/terrain/cells/DrawCell.java index 4c1069b7..26a3ed6d 100644 --- a/src/main/java/electrosphere/client/terrain/cells/DrawCell.java +++ b/src/main/java/electrosphere/client/terrain/cells/DrawCell.java @@ -13,7 +13,6 @@ import electrosphere.entity.Entity; import electrosphere.entity.EntityUtils; import electrosphere.entity.types.terrain.TerrainChunk; import electrosphere.renderer.meshgen.TransvoxelModelGeneration.TransvoxelChunkData; -import electrosphere.server.terrain.manager.ServerTerrainChunk; /** * A single drawcell - contains an entity that has a physics mesh and potentially graphics @@ -238,49 +237,5 @@ public class DrawCell { types[ChunkData.CHUNK_SIZE][ChunkData.CHUNK_SIZE][ChunkData.CHUNK_SIZE] = 0; } } - - - /** - * Fills in the internal arrays of data for generate terrain models - */ - private void fillInData(TransvoxelChunkData chunkData, int lod, DrawCellFace face){ - float[][] faceData = new float[ServerTerrainChunk.CHUNK_DATA_GENERATOR_SIZE][ServerTerrainChunk.CHUNK_DATA_GENERATOR_SIZE]; - int[][] atlasData = new int[ServerTerrainChunk.CHUNK_DATA_GENERATOR_SIZE][ServerTerrainChunk.CHUNK_DATA_GENERATOR_SIZE]; - switch(face){ - case X_POSITIVE: { - } break; - case X_NEGATIVE: { - } break; - case Y_POSITIVE: { - } break; - case Y_NEGATIVE: { - } break; - case Z_POSITIVE: { - } break; - case Z_NEGATIVE: { - } break; - } - // - //fill in data - // - //main chunk - //face X - // if(worldPos.x + 1 < Globals.clientWorldData.getWorldDiscreteSize()){ - // currentChunk = Globals.clientTerrainManager.getChunkDataAtWorldPoint(worldPos.x + 1, worldPos.y, worldPos.z); - // for(int i = 0; i < ChunkData.CHUNK_SIZE; i++){ - // for(int j = 0; j < ChunkData.CHUNK_SIZE; j++){ - // weights[ChunkData.CHUNK_SIZE][i][j] = currentChunk.getWeight(0, i, j); - // types[ChunkData.CHUNK_SIZE][i][j] = currentChunk.getType(0, i, j); - // } - // } - // } else { - // for(int i = 0; i < ChunkData.CHUNK_SIZE; i++){ - // for(int j = 0; j < ChunkData.CHUNK_SIZE; j++){ - // weights[ChunkData.CHUNK_SIZE][i][j] = -1; - // types[ChunkData.CHUNK_SIZE][i][j] = 0; - // } - // } - // } - } }