Skip to content
Permalink
Browse files

Why is this named like this?

  • Loading branch information...
Ri5ux Ri5ux
Ri5ux authored and Ri5ux committed Jul 15, 2019
1 parent 530bd8b commit bd221cad9081409a06e1cbfdb92296c536872ff0
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/main/java/org/avp/block/BlockTransformer.java
@@ -66,28 +66,28 @@ public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, En
{
TileEntityTransformer transformer = (TileEntityTransformer) te;

ArrayList<EnumFacing> EnumFacings = new ArrayList<EnumFacing>();
ArrayList<EnumFacing> facing = new ArrayList<EnumFacing>();

for (EnumFacing dir : EnumFacing.VALUES)
{
if (dir != EnumFacing.UP && dir != EnumFacing.DOWN)
{
EnumFacings.add(dir);
facing.add(dir);
}
}

if (transformer.getRotationYAxis() != null)
{
int index = EnumFacings.indexOf(transformer.getRotationYAxis());
int index = facing.indexOf(transformer.getRotationYAxis());

if (index + 1 >= EnumFacings.size())
if (index + 1 >= facing.size())
{
index = -1;
}

if (EnumFacings.get(index + 1) != null)
if (facing.get(index + 1) != null)
{
transformer.setRotationYAxis(EnumFacings.get(index + 1));
transformer.setRotationYAxis(facing.get(index + 1));
}

if (!world.isRemote)

0 comments on commit bd221ca

Please sign in to comment.
You can’t perform that action at this time.