Probably more thread safe (#1501)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2026-08-13 06:19:04 +00:00
1 parent cf63a70645
commit be3721f175
18 files changed
+147 -105

No files matched your search

@@ -18,6 +18,7 @@ import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.common.util.ForgeDirection;
import com.google.common.base.Function;
@@ -190,6 +191,11 @@ public final class BusRenderHelper implements IPartRenderHelper {
public boolean isBBCollision() {
return false;
}
@Override
public IBlockAccess getBlockAccess() {
return BusRenderHelper.this.getBlockAccess();
}
}
private static final class BaseBlockTransformFunction implements Function<Block, AEBaseBlock> {
@@ -606,4 +612,9 @@ public final class BusRenderHelper implements IPartRenderHelper {
public ForgeDirection getWorldZ() {
return this.az;
}
@Override
public IBlockAccess getBlockAccess() {
return BusRenderer.INSTANCE.getRenderer().blockAccess;
}
}