From f846ec08259c357dcc31fd55ca93347ff64894de Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Thu, 2 Oct 2025 19:13:04 +1000 Subject: [PATCH] only specify neibhors if the state did change --- src/main/java/me/cortex/voxy/common/world/WorldUpdater.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/cortex/voxy/common/world/WorldUpdater.java b/src/main/java/me/cortex/voxy/common/world/WorldUpdater.java index 22a402ba..8491a049 100644 --- a/src/main/java/me/cortex/voxy/common/world/WorldUpdater.java +++ b/src/main/java/me/cortex/voxy/common/world/WorldUpdater.java @@ -104,7 +104,7 @@ public class WorldUpdater { //Bitmask of neighboring sections //Note, this may be zero (this is more likely to occure at higher lod levels) if it doesnt face any neighbors int neighbors = 0; - { + if (didStateChange) { neighbors |= ((section.y^(section.y-1))>>(lvl+1))==0?0:1<<0;//Down neighbors |= ((section.y^(section.y+1))>>(lvl+1))==0?0:1<<1;//Up neighbors |= ((section.x^(section.x-1))>>(lvl+1))==0?0:1<<2;//-x