mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Some minor cleanup trying to fix what seems to be a state leak
This commit is contained in:
6 files changed
+64
-97
No files matched your search
@@ -7,7 +7,6 @@ import java.util.EnumMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import mekanism.client.render.MekanismRenderer.Model3D;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.BufferBuilder;
|
||||
@@ -254,7 +253,6 @@ public class RenderResizableCuboid {
|
||||
Vec3d transVertex = locationFormula.transformToWorld(vertex);
|
||||
BlockPos pos = convertFloor(transVertex);
|
||||
IBlockState state = access.getBlockState(pos);
|
||||
Block block = state.getBlock();
|
||||
int combindedLight = state.getPackedLightmapCoords(access, pos);
|
||||
|
||||
skyLight[0] = combindedLight / 0x10000;
|
||||
|
||||
Reference in new issue
Block a user