mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-10-25 20:22:23 +00:00
make shift logger
This commit is contained in:
1 parent
ac536053ca
commit
1bd5bbd2c6
1 file changed
+14
@@ -46,6 +46,7 @@ import appeng.api.storage.data.IItemList;
|
||||
import appeng.api.util.AECableType;
|
||||
import appeng.api.util.DimensionalCoord;
|
||||
import appeng.api.util.IConfigManager;
|
||||
import appeng.core.AELog;
|
||||
import appeng.core.settings.TickRates;
|
||||
import appeng.helpers.Reflected;
|
||||
import appeng.me.GridAccessException;
|
||||
@@ -385,6 +386,7 @@ public class TileIOPort extends AENetworkInvTile implements IUpgradeableHost, IC
|
||||
}
|
||||
|
||||
boolean didStuff;
|
||||
boolean warned = false;
|
||||
|
||||
do {
|
||||
didStuff = false;
|
||||
@@ -392,6 +394,18 @@ public class TileIOPort extends AENetworkInvTile implements IUpgradeableHost, IC
|
||||
for (final IAEStack s : myList) {
|
||||
final long totalStackSize = s.getStackSize();
|
||||
if (totalStackSize > 0) {
|
||||
if (s.isCraftable()) {
|
||||
if (!warned) {
|
||||
warned = true;
|
||||
AELog.error(
|
||||
"Invalid stack encountered in IO port transferContents at %s (%s, %s, %s)",
|
||||
worldObj.provider.dimensionId,
|
||||
xCoord,
|
||||
yCoord,
|
||||
zCoord);
|
||||
}
|
||||
s.setCraftable(false);
|
||||
}
|
||||
final IAEStack stack = destination.injectItems(s, Actionable.SIMULATE, this.mySrc);
|
||||
|
||||
long possible = 0;
|
||||
|
||||
Reference in new issue
Block a user