mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
Fix issue with entities not sending energy on sides correctly
This commit is contained in:
1 parent
62eeb4d548
commit
ba83e8d357
1 file changed
+3
-3
@@ -70,11 +70,11 @@ public class TileComponentConfig implements ITileComponent
|
||||
SideConfig config = getConfig(type);
|
||||
EnumFacing[] translatedFacings = MekanismUtils.getBaseOrientations(facing);
|
||||
|
||||
for(int i = 0; i < EnumFacing.VALUES.length; i++)
|
||||
for(EnumFacing sideToCheck : EnumFacing.values())
|
||||
{
|
||||
if(config.get(translatedFacings[i]) == dataIndex)
|
||||
if(config.get(translatedFacings[sideToCheck.ordinal()]) == dataIndex)
|
||||
{
|
||||
ret.add(translatedFacings[i]);
|
||||
ret.add(sideToCheck);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user