mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-11-25 22:44:40 +00:00
Probably more thread safe (#1501)
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user