mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
Merge branch 'master' of https://github.com/SleepyTrousers/EnderIO.git
This commit is contained in:
commit
bb5e835f99
16 files changed
+177
-82
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 875 B |
@@ -374,7 +374,7 @@ public class ClientProxy extends CommonProxy {
|
||||
|
||||
conduitRenderers.add(RedstoneSwitchRenderer.getInstance());
|
||||
conduitRenderers.add(new AdvancedLiquidConduitRenderer());
|
||||
conduitRenderers.add(new LiquidConduitRenderer());
|
||||
conduitRenderers.add(LiquidConduitRenderer.create());
|
||||
conduitRenderers.add(new PowerConduitRenderer());
|
||||
conduitRenderers.add(new InsulatedRedstoneConduitRenderer());
|
||||
conduitRenderers.add(new EnderLiquidConduitRenderer());
|
||||
|
||||
@@ -1,12 +1,19 @@
|
||||
package crazypants.enderio.conduit.liquid;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.resources.IResourceManager;
|
||||
import net.minecraft.client.resources.IResourceManagerReloadListener;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
|
||||
import com.enderio.core.client.render.BoundingBox;
|
||||
@@ -18,16 +25,16 @@ import com.enderio.core.common.vecmath.Vector3f;
|
||||
import com.enderio.core.common.vecmath.Vertex;
|
||||
|
||||
import crazypants.enderio.EnderIO;
|
||||
import crazypants.enderio.Log;
|
||||
import crazypants.enderio.conduit.ConnectionMode;
|
||||
import crazypants.enderio.conduit.IConduit;
|
||||
import crazypants.enderio.conduit.IConduitBundle;
|
||||
import crazypants.enderio.conduit.geom.CollidableComponent;
|
||||
import crazypants.enderio.conduit.render.ConduitBundleRenderer;
|
||||
import crazypants.enderio.conduit.render.DefaultConduitRenderer;
|
||||
|
||||
import static com.enderio.core.client.render.CubeRenderer.*;
|
||||
|
||||
public class LiquidConduitRenderer extends DefaultConduitRenderer {
|
||||
public class LiquidConduitRenderer extends DefaultConduitRenderer implements IResourceManagerReloadListener {
|
||||
|
||||
private float downRatio;
|
||||
|
||||
@@ -35,6 +42,16 @@ public class LiquidConduitRenderer extends DefaultConduitRenderer {
|
||||
|
||||
private float upRatio;
|
||||
|
||||
private LiquidConduitRenderer() {
|
||||
super();
|
||||
}
|
||||
|
||||
public static LiquidConduitRenderer create() {
|
||||
LiquidConduitRenderer result = new LiquidConduitRenderer();
|
||||
RenderUtil.registerReloadListener(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRendererForConduit(IConduit conduit) {
|
||||
if (conduit instanceof LiquidConduit) {
|
||||
@@ -70,7 +87,6 @@ public class LiquidConduitRenderer extends DefaultConduitRenderer {
|
||||
if (conduit.getConnectionMode(component.dir) == ConnectionMode.DISABLED) {
|
||||
tex = EnderIO.blockConduitBundle.getConnectorIcon(component.data);
|
||||
List<Vertex> corners = component.bound.getCornersWithUvForFace(component.dir, tex.getMinU(), tex.getMaxU(), tex.getMinV(), tex.getMaxV());
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
for (Vertex c : corners) {
|
||||
addVecWithUV(c.xyz, c.uv.x, c.uv.y);
|
||||
}
|
||||
@@ -87,12 +103,32 @@ public class LiquidConduitRenderer extends DefaultConduitRenderer {
|
||||
}
|
||||
|
||||
public static void renderFluidOutline(CollidableComponent component, FluidStack fluid, double scaleFactor, float outlineWidth) {
|
||||
//TODO: Should cache these vertices as relatively heavy weight to calc each frame
|
||||
IIcon texture = fluid.getFluid().getStillIcon();
|
||||
for (CachableRenderStatement elem : computeFluidOutlineToCache(component, fluid.getFluid(), scaleFactor, outlineWidth)) {
|
||||
elem.execute();
|
||||
}
|
||||
}
|
||||
|
||||
private static Map<CollidableComponent, Map<Fluid, List<CachableRenderStatement>>> cache = new WeakHashMap<CollidableComponent, Map<Fluid, List<CachableRenderStatement>>>();
|
||||
|
||||
public static List<CachableRenderStatement> computeFluidOutlineToCache(CollidableComponent component, Fluid fluid, double scaleFactor, float outlineWidth) {
|
||||
|
||||
Map<Fluid, List<CachableRenderStatement>> cache0 = cache.get(component);
|
||||
if (cache0 == null) {
|
||||
cache0 = new HashMap<Fluid, List<CachableRenderStatement>>();
|
||||
cache.put(component, cache0);
|
||||
}
|
||||
List<CachableRenderStatement> data = cache0.get(fluid);
|
||||
if (data != null) {
|
||||
return data;
|
||||
}
|
||||
data = new ArrayList<CachableRenderStatement>();
|
||||
cache0.put(fluid, data);
|
||||
|
||||
IIcon texture = fluid.getStillIcon();
|
||||
if (texture == null) {
|
||||
texture = fluid.getFluid().getIcon();
|
||||
texture = fluid.getIcon();
|
||||
if (texture == null) {
|
||||
return;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,8 +145,7 @@ public class LiquidConduitRenderer extends DefaultConduitRenderer {
|
||||
for (ForgeDirection face : ForgeDirection.VALID_DIRECTIONS) {
|
||||
if (face != component.dir && face != component.dir.getOpposite()) {
|
||||
|
||||
Tessellator tes = Tessellator.instance;
|
||||
tes.setNormal(face.offsetX, face.offsetY, face.offsetZ);
|
||||
data.add(new CachableRenderStatement.SetNormal(face.offsetX, face.offsetY, face.offsetZ));
|
||||
Vector3d offset = ForgeDirectionOffsets.offsetScaled(face, -0.005);
|
||||
|
||||
Vector2f uv = new Vector2f();
|
||||
@@ -136,13 +171,50 @@ public class LiquidConduitRenderer extends DefaultConduitRenderer {
|
||||
|
||||
RenderUtil.getUvForCorner(uv, corner, 0, 0, 0, face, texture);
|
||||
|
||||
tes.addVertexWithUV(corner.x, corner.y, corner.z, uv.x, uv.y);
|
||||
data.add(new CachableRenderStatement.AddVertexWithUV(corner.x, corner.y, corner.z, uv.x, uv.y));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
private interface CachableRenderStatement {
|
||||
void execute();
|
||||
|
||||
static class SetNormal implements CachableRenderStatement {
|
||||
private final float x, y, z;
|
||||
|
||||
private SetNormal(float x, float y, float z) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute() {
|
||||
Tessellator.instance.setNormal(x, y, z);
|
||||
}
|
||||
}
|
||||
|
||||
static class AddVertexWithUV implements CachableRenderStatement {
|
||||
private final double x, y, z, u, v;
|
||||
|
||||
private AddVertexWithUV(double x, double y, double z, double u, double v) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
this.u = u;
|
||||
this.v = v;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute() {
|
||||
Tessellator.instance.addVertexWithUV(x, y, z, u, v);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -172,7 +244,6 @@ public class LiquidConduitRenderer extends DefaultConduitRenderer {
|
||||
IIcon tex;
|
||||
for (CollidableComponent component : components) {
|
||||
if (renderComponent(component)) {
|
||||
float selfIllum = Math.max(worldLight, conduit.getSelfIlluminationForState(component));
|
||||
if (isNSEWUD(component.dir) && conduit.getTransmitionTextureForState(component) != null) {
|
||||
|
||||
tessellator.setColorOpaque_F(1, 1, 1);
|
||||
@@ -251,4 +322,9 @@ public class LiquidConduitRenderer extends DefaultConduitRenderer {
|
||||
return flatRatio;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResourceManagerReload(IResourceManager p_110549_1_) {
|
||||
cache.clear();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -278,7 +278,7 @@ public abstract class AbstractMachineBlock<T extends AbstractMachineEntity> exte
|
||||
}
|
||||
|
||||
protected String getBottomIconKey(boolean active) {
|
||||
return "enderio:machineTemplate";
|
||||
return "enderio:machineBottom";
|
||||
}
|
||||
|
||||
protected String getModelIconKey(boolean active) {
|
||||
|
||||
@@ -176,7 +176,7 @@ public class VanillaSmeltingRecipe implements IMachineRecipe {
|
||||
Map<ItemStack, ItemStack> metaList = FurnaceRecipes.smelting().getSmeltingList();
|
||||
for (Entry<ItemStack, ItemStack> entry : metaList.entrySet()) {
|
||||
ItemStack output = entry.getValue();
|
||||
output = OreDictionaryPreferences.instance.getPreferred(output);
|
||||
output = OreDictionaryPreferences.instance.getPreferred(output).copy();
|
||||
result.add(new Recipe(new RecipeInput(entry.getKey()), RF_PER_ITEM, RecipeBonusType.NONE, new RecipeOutput(output)));
|
||||
}
|
||||
return result;
|
||||
|
||||
@@ -4,6 +4,7 @@ import java.util.Random;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.world.World;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -45,7 +46,7 @@ public abstract class BlockObeliskAbstract<T extends AbstractMachineEntity> exte
|
||||
|
||||
@Override
|
||||
protected String getBottomIconKey(boolean active) {
|
||||
return "enderio:blockSoulMachineBlank";
|
||||
return "enderio:obeliskBottom";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -11,17 +11,23 @@ import org.lwjgl.opengl.GL11;
|
||||
import com.enderio.core.api.client.render.VertexTransform;
|
||||
import com.enderio.core.client.render.BoundingBox;
|
||||
import com.enderio.core.client.render.CubeRenderer;
|
||||
import com.enderio.core.client.render.IconUtil;
|
||||
import com.enderio.core.client.render.RenderUtil;
|
||||
import com.enderio.core.common.vecmath.Vector3d;
|
||||
import com.enderio.core.common.vecmath.Vector3f;
|
||||
import com.enderio.core.common.vecmath.Vertex;
|
||||
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import crazypants.enderio.EnderIO;
|
||||
import crazypants.enderio.machine.AbstractMachineBlock;
|
||||
|
||||
public class ObeliskRenderer implements ISimpleBlockRenderingHandler {
|
||||
|
||||
private VertXForm xform = new VertXForm();
|
||||
private VertXForm2 xform2 = new VertXForm2();
|
||||
private VertXForm3 xform3 = new VertXForm3();
|
||||
|
||||
private static float WIDE_PINCH = 0.9f;
|
||||
private static float WIDTH = 18f / 32f * WIDE_PINCH;
|
||||
|
||||
@Override
|
||||
public void renderInventoryBlock(Block block, int metadata, int modelId, RenderBlocks renderer) {
|
||||
@@ -36,29 +42,56 @@ public class ObeliskRenderer implements ISimpleBlockRenderingHandler {
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
|
||||
|
||||
BoundingBox bb = BoundingBox.UNIT_CUBE;
|
||||
|
||||
Tessellator.instance.addTranslation(x, y, z);
|
||||
|
||||
IIcon icon = EnderIO.blockAttractor.getOnIcon();
|
||||
if(world != null) {
|
||||
IIcon icon;
|
||||
IIcon[] icons;
|
||||
IIcon[] bottomIcon = null;
|
||||
if (world != null) { // block
|
||||
RenderUtil.setTesselatorBrightness(world, x, y, z);
|
||||
icon = block.getIcon(world, x, y, z, 0);
|
||||
Tessellator.instance.setBrightness(block.getMixedBrightnessForBlock(world, x, y, z));
|
||||
icons = RenderUtil.getBlockTextures(world, x, y, z);
|
||||
} else { // item
|
||||
icon = block.getIcon(1, 0);
|
||||
icons = RenderUtil.getBlockTextures(block, 0);
|
||||
}
|
||||
|
||||
if (icons != null) {
|
||||
bottomIcon = new IIcon[6];
|
||||
for (int i = 0; i < bottomIcon.length; i++) {
|
||||
bottomIcon[i] = IconUtil.blankTexture;
|
||||
}
|
||||
bottomIcon[0] = icons[0];
|
||||
icons[0] = IconUtil.blankTexture;
|
||||
}
|
||||
|
||||
if(renderer.hasOverrideBlockTexture()) {
|
||||
icon = renderer.overrideBlockTexture;
|
||||
icons = null;
|
||||
}
|
||||
|
||||
float height = 0.475f;
|
||||
float width = 0.5f;
|
||||
bb = BoundingBox.UNIT_CUBE.scale(width, height, 1).translate(0, -0.5f + height / 2, 0);
|
||||
float width = WIDTH;
|
||||
BoundingBox bb = BoundingBox.UNIT_CUBE.scale(width, height, 1).translate(0, -0.5f + height / 2, 0);
|
||||
xform2.isX = false;
|
||||
CubeRenderer.render(bb, icon, xform2, true);
|
||||
if (icons == null) {
|
||||
CubeRenderer.render(bb, icon, xform2, true);
|
||||
} else {
|
||||
CubeRenderer.render(bb, icons, xform2, true);
|
||||
}
|
||||
|
||||
bb = BoundingBox.UNIT_CUBE.scale(1, height, width).translate(0, -0.5f + height / 2, 0);
|
||||
xform2.isX = true;
|
||||
CubeRenderer.render(bb, icon, xform2, true);
|
||||
if (icons == null) {
|
||||
CubeRenderer.render(bb, icon, xform2, true);
|
||||
} else {
|
||||
CubeRenderer.render(bb, icons, xform2, true);
|
||||
}
|
||||
|
||||
if (bottomIcon != null) {
|
||||
bb = BoundingBox.UNIT_CUBE;
|
||||
CubeRenderer.render(bb, bottomIcon, xform3, true);
|
||||
}
|
||||
|
||||
Tessellator.instance.addTranslation(-x, -y, -z);
|
||||
|
||||
@@ -75,41 +108,6 @@ public class ObeliskRenderer implements ISimpleBlockRenderingHandler {
|
||||
return BlockObeliskAbstract.defaultObeliskRenderId;
|
||||
}
|
||||
|
||||
private static class VertXForm implements VertexTransform {
|
||||
|
||||
public VertXForm() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply(Vertex vertex) {
|
||||
apply(vertex.xyz);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply(Vector3d vec) {
|
||||
double pinch = 0.8;
|
||||
if(vec.y > 0.5) {
|
||||
pinch = 0.4;
|
||||
}
|
||||
vec.x -= 0.5;
|
||||
vec.x *= pinch;
|
||||
vec.x += 0.5;
|
||||
vec.z -= 0.5;
|
||||
vec.z *= pinch;
|
||||
vec.z += 0.5;
|
||||
|
||||
double scale = 0.5;
|
||||
vec.y -= 0.5;
|
||||
vec.y *= scale;
|
||||
vec.y += (0.5 * scale);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyToNormal(Vector3f vec) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static class VertXForm2 implements VertexTransform {
|
||||
|
||||
boolean isX = true;
|
||||
@@ -124,7 +122,7 @@ public class ObeliskRenderer implements ISimpleBlockRenderingHandler {
|
||||
|
||||
@Override
|
||||
public void apply(Vector3d vec) {
|
||||
double pinch = 0.9;
|
||||
double pinch = WIDE_PINCH;
|
||||
if(vec.y > 0.2) {
|
||||
pinch = 0.5;
|
||||
}
|
||||
@@ -144,4 +142,31 @@ public class ObeliskRenderer implements ISimpleBlockRenderingHandler {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static class VertXForm3 implements VertexTransform {
|
||||
|
||||
public VertXForm3() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply(Vertex vertex) {
|
||||
apply(vertex.xyz);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply(Vector3d vec) {
|
||||
vec.x -= 0.5;
|
||||
vec.x *= (double) WIDE_PINCH;
|
||||
vec.x += 0.5;
|
||||
vec.z -= 0.5;
|
||||
vec.z *= (double) WIDE_PINCH;
|
||||
vec.z += 0.5;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyToNormal(Vector3f vec) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2,6 +2,7 @@ package crazypants.enderio.machine.obelisk;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
@@ -23,7 +24,6 @@ import com.enderio.core.client.render.RenderUtil;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import crazypants.enderio.EnderIO;
|
||||
|
||||
import static org.lwjgl.opengl.GL11.*;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@@ -76,9 +76,9 @@ public class ObeliskSpecialRenderer<T extends TileEntity> extends TileEntitySpec
|
||||
break;
|
||||
}
|
||||
|
||||
blockRen.renderInventoryBlock(EnderIO.blockAttractor, item.getItemDamage(), 0, (RenderBlocks) data[0]);
|
||||
blockRen.renderInventoryBlock(Block.getBlockFromItem(item.getItem()), item.getItemDamage(), 0, (RenderBlocks) data[0]);
|
||||
Timer t = RenderUtil.getTimer();
|
||||
renderItemStack(null, Minecraft.getMinecraft().theWorld, 0, 0, 0, t.renderPartialTicks);
|
||||
renderItemStack(null, Minecraft.getMinecraft().theWorld, 0, 0, 0, t == null ? 0 : t.renderPartialTicks);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
@@ -33,11 +33,6 @@ public class BlockAttractor extends BlockObeliskAbstract<TileAttractor> {
|
||||
return null;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getOnIcon() {
|
||||
return iconBuffer[0][6];
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
||||
TileEntity te = world.getTileEntity(x, y, z);
|
||||
|
||||
@@ -35,18 +35,14 @@ public class BlockExperienceObelisk extends BlockObeliskAbstract<TileExperienceO
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int blockSide) {
|
||||
return getIcon(blockSide, 0);
|
||||
protected boolean isActive(IBlockAccess blockAccess, int x, int y, int z) {
|
||||
return true; // always render as active
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(int side, int meta) {
|
||||
if(ForgeDirection.getOrientation(side) == ForgeDirection.UP) {
|
||||
return EnderIO.blockAttractor.getIcon(side, 0);
|
||||
}
|
||||
return EnderIO.blockAttractor.getOnIcon();
|
||||
public IIcon getIcon(int blockSide, int blockMeta) {
|
||||
return super.getIcon(blockSide + 6, blockMeta); // always render as active
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -70,7 +70,7 @@ public class BlockSliceAndSplice extends AbstractMachineBlock<TileSliceAndSplice
|
||||
|
||||
@Override
|
||||
protected String getBottomIconKey(boolean active) {
|
||||
return "enderio:blockSoulMachineBlank";
|
||||
return "enderio:blockSoulMachineBottom";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -105,7 +105,7 @@ public class BlockSoulBinder extends AbstractMachineBlock<TileSoulBinder> {
|
||||
|
||||
@Override
|
||||
protected String getBottomIconKey(boolean active) {
|
||||
return "enderio:blockSoulMachineBlank";
|
||||
return "enderio:blockSoulMachineBottom";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -347,7 +347,7 @@ public class TileTank extends AbstractMachineEntity implements IFluidHandler, IT
|
||||
|
||||
int slot = getSlotDefinition().getMinOutputSlot();
|
||||
|
||||
if (inventory[slot] != null) {
|
||||
if (inventory[slot] != null && fill.result.itemStack != null) {
|
||||
if (inventory[slot].isStackable() && ItemUtil.areStackMergable(inventory[slot], fill.result.itemStack)
|
||||
&& inventory[slot].stackSize < inventory[slot].getMaxStackSize()) {
|
||||
fill.result.itemStack.stackSize += inventory[slot].stackSize;
|
||||
@@ -358,7 +358,9 @@ public class TileTank extends AbstractMachineEntity implements IFluidHandler, IT
|
||||
|
||||
getInputTank(fill.result.fluidStack).setFluid(fill.remainder.fluidStack);
|
||||
setInventorySlotContents(getSlotDefinition().getMinInputSlot(), fill.remainder.itemStack);
|
||||
setInventorySlotContents(slot, fill.result.itemStack);
|
||||
if (fill.result.itemStack != null) {
|
||||
setInventorySlotContents(slot, fill.result.itemStack);
|
||||
}
|
||||
|
||||
setTanksDirty();
|
||||
markDirty();
|
||||
|
||||
@@ -62,7 +62,7 @@ public final class OreDictionaryPreferences {
|
||||
}
|
||||
|
||||
if(result == null) {
|
||||
result = stack;
|
||||
result = stack.copy();
|
||||
}
|
||||
stackCache.put(key, result);
|
||||
return stack;
|
||||
|
||||
Reference in new issue
Block a user