Optimize renderer
This commit is contained in:
@@ -19,7 +19,7 @@ export class DimensionLogicSystem extends System {
|
||||
}
|
||||
}
|
||||
handle_second(world: ClientWorld, dimension: Dimension) {
|
||||
for (const chunk of dimension.chunks) {
|
||||
for (const chunk of dimension.chunks.values()) {
|
||||
for (const tickable of chunk.blocks_data) {
|
||||
const tile_info = EverythingRegistry.get<BlockRegistry>("blocks", tickable.id);
|
||||
if (tile_info && tile_info.on_second) {
|
||||
@@ -31,7 +31,7 @@ export class DimensionLogicSystem extends System {
|
||||
}
|
||||
|
||||
handle_tick(world: ClientWorld, dimension: Dimension) {
|
||||
for (const chunk of dimension.chunks) {
|
||||
for (const chunk of dimension.chunks.values()) {
|
||||
for (const tickable of chunk.blocks_data) {
|
||||
const tile_info = EverythingRegistry.get<BlockRegistry>("blocks", tickable.id);
|
||||
if (tile_info && tile_info.on_tick) {
|
||||
|
||||
Reference in New Issue
Block a user