Charge powered items from chest armor

This commit is contained in:
drcrazy 2019-08-13 21:20:41 +03:00
parent 6282e1f714
commit b0576e3aba
2 changed files with 2 additions and 4 deletions

View file

@ -46,8 +46,6 @@ import techreborn.packets.ServerboundPackets;
import techreborn.utils.BehaviorDispenseScrapbox;
import techreborn.world.WorldGenerator;
import java.util.function.Supplier;
public class TechReborn implements ModInitializer {
public static final String MOD_ID = "techreborn";

View file

@ -34,6 +34,7 @@ import net.minecraft.util.DefaultedList;
import net.minecraft.world.World;
import reborncore.api.power.IEnergyItemInfo;
import reborncore.api.power.ItemPowerManager;
import reborncore.common.powerSystem.ExternalPowerSystems;
import reborncore.common.powerSystem.PowerSystem;
import reborncore.common.util.ItemDurabilityExtensions;
import reborncore.common.util.ItemUtils;
@ -61,8 +62,7 @@ public class ItemLithiumIonBatpack extends ArmorItem implements IEnergyItemInfo,
for (int i = 0; i < player.inventory.getInvSize(); i++) {
if (!player.inventory.getInvStack(i).isEmpty()) {
//TODO fix me
//ExternalPowerSystems.chargeItem(capEnergy, player.inventory.getInvStack(i));
ExternalPowerSystems.chargeItem(capEnergy, player.inventory.getInvStack(i));
}
}
}