mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 13:29:40 +00:00
Fixed Induction Matrix not outputting properly
This commit is contained in:
1 parent
0e51852baa
commit
f9070f33d0
4 files changed
+12
-16
No files matched your search
@@ -79,6 +79,15 @@ public class TileEntityInductionPort extends TileEntityInductionCasing implement
|
||||
{
|
||||
EnumSet set = EnumSet.allOf(ForgeDirection.class);
|
||||
set.remove(ForgeDirection.UNKNOWN);
|
||||
|
||||
for(ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
|
||||
{
|
||||
if(structure.locations.contains(Coord4D.get(this).getFromSide(side)))
|
||||
{
|
||||
set.remove(side);
|
||||
}
|
||||
}
|
||||
|
||||
return set;
|
||||
}
|
||||
|
||||
@@ -215,16 +224,6 @@ public class TileEntityInductionPort extends TileEntityInductionCasing implement
|
||||
nbtTags.setBoolean("mode", mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the scaled energy level for the GUI.
|
||||
* @param i - multiplier
|
||||
* @return scaled energy
|
||||
*/
|
||||
public int getScaledEnergyLevel(int i)
|
||||
{
|
||||
return (int)(getEnergy()*i / getMaxEnergy());
|
||||
}
|
||||
|
||||
@Override
|
||||
@Method(modid = "CoFHCore")
|
||||
public int receiveEnergy(ForgeDirection from, int maxReceive, boolean simulate)
|
||||
|
||||
Reference in new issue
Block a user