Skip to content

Commit

Permalink
ALLOC_ENUM_VALUES switch let's go
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Dec 19, 2020
1 parent ff4c383 commit e492c9b
Show file tree
Hide file tree
Showing 34 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion patches/net/minecraft/block/BlockConcretePowder.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
BlockPos.MutableBlockPos blockpos$mutableblockpos = new BlockPos.MutableBlockPos(p_196441_1_);

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
IBlockState iblockstate = p_196441_0_.getBlockState(blockpos$mutableblockpos);

2 changes: 1 addition & 1 deletion patches/net/minecraft/block/BlockCoral.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
protected boolean canLive(IBlockReader p_203943_1_, BlockPos p_203943_2_)
{
- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
IFluidState ifluidstate = p_203943_1_.getFluidState(p_203943_2_.offset(enumfacing));

2 changes: 1 addition & 1 deletion patches/net/minecraft/block/BlockCoralPlantBase.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
else
{
- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
if (worldIn.getFluidState(pos.offset(enumfacing)).isTagged(FluidTags.WATER))
{
6 changes: 3 additions & 3 deletions patches/net/minecraft/block/BlockFire.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
IBlockState iblockstate1 = this.getDefaultState();

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
BooleanProperty booleanproperty = FACING_TO_PROPERTY_MAP.get(enumfacing);

Expand All @@ -14,7 +14,7 @@
private boolean areNeighborsFlammable(IBlockReader worldIn, BlockPos pos)
{
- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
if (this.canBurn(worldIn.getBlockState(pos.offset(enumfacing))))
{
Expand All @@ -23,7 +23,7 @@
int i = 0;

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
i = Math.max(this.getEncouragement(worldIn.getBlockState(pos.offset(enumfacing)).getBlock()), i);
}
2 changes: 1 addition & 1 deletion patches/net/minecraft/block/BlockFlowingFluid.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
boolean flag = false;

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
if (enumfacing != EnumFacing.DOWN && worldIn.getFluidState(pos.offset(enumfacing)).isTagged(FluidTags.WATER))
{
4 changes: 2 additions & 2 deletions patches/net/minecraft/block/BlockFrostedIce.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
try (BlockPos.PooledMutableBlockPos blockpos$pooledmutableblockpos = BlockPos.PooledMutableBlockPos.retain())
{
- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
blockpos$pooledmutableblockpos.setPos(pos).move(enumfacing);
IBlockState iblockstate = worldIn.getBlockState(blockpos$pooledmutableblockpos);
Expand All @@ -14,7 +14,7 @@
try (BlockPos.PooledMutableBlockPos blockpos$pooledmutableblockpos = BlockPos.PooledMutableBlockPos.retain())
{
- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
blockpos$pooledmutableblockpos.setPos(pos).move(enumfacing);

2 changes: 1 addition & 1 deletion patches/net/minecraft/block/BlockLeaves.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
try (BlockPos.PooledMutableBlockPos blockpos$pooledmutableblockpos = BlockPos.PooledMutableBlockPos.retain())
{
- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
blockpos$pooledmutableblockpos.setPos(p_208493_2_).move(enumfacing);
i = Math.min(i, getDistance(p_208493_1_.getBlockState(blockpos$pooledmutableblockpos)) + 1);
2 changes: 1 addition & 1 deletion patches/net/minecraft/block/BlockRedstoneDiode.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
worldIn.removeBlock(pos);

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
worldIn.notifyNeighborsOfStateChange(pos.offset(enumfacing), this);
}
Expand Down
2 changes: 1 addition & 1 deletion patches/net/minecraft/block/BlockRedstoneOre.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Random random = p_180691_0_.rand;

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
BlockPos blockpos = worldIn.offset(enumfacing);

6 changes: 3 additions & 3 deletions patches/net/minecraft/block/BlockRedstoneWire.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
- this.blocksNeedingUpdate.add(p_212568_2_.offset(enumfacing1));
+ this.blocksNeedingUpdate.add(p_212568_2_);
+
+ for (EnumFacing enumfacing1 : EnumFacing.ENUM_FACING_VALUES) {
+ for (EnumFacing enumfacing1 : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values())) {
+ this.blocksNeedingUpdate.add(p_212568_2_.offset(enumfacing1));
+ }
}
Expand All @@ -174,7 +174,7 @@
worldIn.notifyNeighborsOfStateChange(pos, this);

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
worldIn.notifyNeighborsOfStateChange(pos.offset(enumfacing), this);
}
Expand All @@ -193,7 +193,7 @@
if (!worldIn.isRemote)
{
- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
worldIn.notifyNeighborsOfStateChange(pos.offset(enumfacing), this);
}
Expand Down
2 changes: 1 addition & 1 deletion patches/net/minecraft/block/BlockSponge.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
int j = tuple.getB();

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
BlockPos blockpos1 = blockpos.offset(enumfacing);
IBlockState iblockstate = worldIn.getBlockState(blockpos1);
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
for (BlockPos blockpos : BlockPos.getAllInBox(pos, pos.add(i - 1, i - 1, i - 1)))
{
- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
- for (EnumFacing enumfacing1 : EnumFacing.values())
+ for (EnumFacing enumfacing1 : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing1 : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
if (enumfacing1 != enumfacing && enumfacing1 != enumfacing.getOpposite())
{
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
{
boolean flag = false;
- float[] afloat = new float[EnumFacing.values().length * 2];
+ float[] afloat = new float[EnumFacing.ENUM_FACING_VALUES.length * 2];
+ float[] afloat = new float[(me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()).length * 2];
BitSet bitset = new BitSet(3);
BlockModelRenderer.AmbientOcclusionFace blockmodelrenderer$ambientocclusionface = new BlockModelRenderer.AmbientOcclusionFace();

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
randomIn.setSeed(rand);
List<BakedQuad> list = modelIn.getQuads(stateIn, enumfacing, randomIn);
Expand All @@ -19,7 +19,7 @@
BitSet bitset = new BitSet(3);

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
randomIn.setSeed(rand);
List<BakedQuad> list = modelIn.getQuads(stateIn, enumfacing, randomIn);
Expand All @@ -28,7 +28,7 @@
quadBounds[EnumFacing.NORTH.getIndex()] = f2;
quadBounds[EnumFacing.SOUTH.getIndex()] = f5;
- int j = EnumFacing.values().length;
+ int j = EnumFacing.ENUM_FACING_VALUES.length;
+ int j = (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()).length;
quadBounds[EnumFacing.WEST.getIndex() + j] = 1.0F - f;
quadBounds[EnumFacing.EAST.getIndex() + j] = 1.0F - f3;
quadBounds[EnumFacing.DOWN.getIndex() + j] = 1.0F - f1;
Expand All @@ -37,7 +37,7 @@
long i = 42L;

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
random.setSeed(42L);
this.renderModelBrightnessColorQuads(brightness, red, green, blue, modelIn.getQuads(state, enumfacing, random));
Expand All @@ -46,7 +46,7 @@
private Orientation(EnumFacing facingIn, boolean flip)
{
- this.shape = facingIn.getIndex() + (flip ? EnumFacing.values().length : 0);
+ this.shape = facingIn.getIndex() + (flip ? EnumFacing.ENUM_FACING_VALUES.length : 0);
+ this.shape = facingIn.getIndex() + (flip ? (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()).length : 0);
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
long i = 42L;

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
random.setSeed(42L);
this.renderQuads(bufferbuilder, model.getQuads((IBlockState)null, enumfacing, random), color, stack);
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
this.boundingBox = new AxisAlignedBB((double)x, (double)y, (double)z, (double)(x + 16), (double)(y + 16), (double)(z + 16));

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
this.mapEnumFacing[enumfacing.ordinal()].setPos(this.position).move(enumfacing, 16);
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
int i = 0;

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
int j = this.getLightSubtracted(pos.offset(enumfacing), amount);

Expand All @@ -14,7 +14,7 @@
int l = 0;

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
int k = RenderChunkCache.this.getLightFor(lightType, pos.offset(enumfacing));

Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
stringbuilder.append(' ');

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
stringbuilder.append(' ').append(enumfacing.toString().toUpperCase().charAt(0));
}

stringbuilder.append('\n');

- for (EnumFacing enumfacing2 : EnumFacing.values())
+ for (EnumFacing enumfacing2 : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing2 : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
stringbuilder.append(enumfacing2.toString().toUpperCase().charAt(0));

- for (EnumFacing enumfacing1 : EnumFacing.values())
+ for (EnumFacing enumfacing1 : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing1 : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
if (enumfacing2 == enumfacing1)
{
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
private static final float SCALE_ROTATION_22_5 = 1.0F / (float)Math.cos((double)((float)Math.PI / 8F)) - 1.0F;
private static final float SCALE_ROTATION_GENERAL = 1.0F / (float)Math.cos((double)((float)Math.PI / 4F)) - 1.0F;
- private static final FaceBakery.Rotation[] UV_ROTATIONS = new FaceBakery.Rotation[ModelRotation.values().length * EnumFacing.values().length];
+ private static final FaceBakery.Rotation[] UV_ROTATIONS = new FaceBakery.Rotation[ModelRotation.values().length * EnumFacing.ENUM_FACING_VALUES.length];
+ private static final FaceBakery.Rotation[] UV_ROTATIONS = new FaceBakery.Rotation[ModelRotation.values().length * (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()).length];
private static final FaceBakery.Rotation UV_ROTATION_0 = new FaceBakery.Rotation()
{
BlockFaceUV makeRotatedUV(float u1, float v1, float u2, float v2)
Expand All @@ -14,7 +14,7 @@
private float[] getPositionsDiv16(Vector3f pos1, Vector3f pos2)
{
- float[] afloat = new float[EnumFacing.values().length];
+ float[] afloat = new float[EnumFacing.ENUM_FACING_VALUES.length];
+ float[] afloat = new float[(me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()).length];
afloat[EnumFaceDirection.Constants.WEST_INDEX] = pos1.getX() / 16.0F;
afloat[EnumFaceDirection.Constants.DOWN_INDEX] = pos1.getY() / 16.0F;
afloat[EnumFaceDirection.Constants.NORTH_INDEX] = pos1.getZ() / 16.0F;
Expand All @@ -23,7 +23,7 @@
float f = 0.0F;

- for (EnumFacing enumfacing1 : EnumFacing.values())
+ for (EnumFacing enumfacing1 : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing1 : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
Vec3i vec3i = enumfacing1.getDirectionVec();
Vector3f vector3f6 = new Vector3f((float)vec3i.getX(), (float)vec3i.getY(), (float)vec3i.getZ());
Expand All @@ -32,7 +32,7 @@
int[] aint = new int[p_178408_1_.length];
System.arraycopy(p_178408_1_, 0, aint, 0, p_178408_1_.length);
- float[] afloat = new float[EnumFacing.values().length];
+ float[] afloat = new float[EnumFacing.ENUM_FACING_VALUES.length];
+ float[] afloat = new float[(me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()).length];
afloat[EnumFaceDirection.Constants.WEST_INDEX] = 999.0F;
afloat[EnumFaceDirection.Constants.DOWN_INDEX] = 999.0F;
afloat[EnumFaceDirection.Constants.NORTH_INDEX] = 999.0F;
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
this.builderTexture = p_i48189_2_.getParticleTexture();

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
p_i48189_4_.setSeed(p_i48189_5_);

Expand All @@ -14,7 +14,7 @@
private Builder(boolean ambientOcclusion, boolean gui3d, ItemCameraTransforms transforms, ItemOverrideList overrides)
{
- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
this.builderFaceQuads.put(enumfacing, Lists.newArrayList());
}
4 changes: 2 additions & 2 deletions patches/net/minecraft/entity/monster/EntityShulker.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
boolean flag = false;

- for (EnumFacing enumfacing1 : EnumFacing.values())
+ for (EnumFacing enumfacing1 : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing1 : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
blockpos1 = blockpos.offset(enumfacing1);

Expand All @@ -14,7 +14,7 @@
boolean flag = false;

- for (EnumFacing enumfacing : EnumFacing.values())
+ for (EnumFacing enumfacing : EnumFacing.ENUM_FACING_VALUES)
+ for (EnumFacing enumfacing : (me.jellysquid.mods.lithium.LithiumConfig.ALLOC_ENUM_VALUES ? EnumFacing.ENUM_FACING_VALUES : EnumFacing.values()))
{
if (this.world.isTopSolid(blockpos1.offset(enumfacing)))
{
Loading

0 comments on commit e492c9b

Please sign in to comment.