Don't use the cached knowledge provider for ProjectE
@@ -35,10 +35,13 @@ public class StorageItemTransmutationTable extends StorageItemExternal {
if (externalStorage.getOwner() != null) {
IKnowledgeProvider provider = ProjectEAPI.getTransmutationProxy().getKnowledgeProviderFor(externalStorage.getOwner());
+ // @todo: https://github.com/sinkillerj/ProjectE/issues/1591
+ if (!provider.getClass().getName().equals("moze_intel.projecte.impl.TransmutationOffline$1")) {
for (ItemStack knowledge : provider.getKnowledge()) {
stored.add(ItemHandlerHelper.copyStackWithSize(knowledge, (int) Math.floor(provider.getEmc() / (double) ProjectEAPI.getEMCProxy().getValue(knowledge))));
}
}
+ }
return stored;
}
@@ -51,6 +54,8 @@ public class StorageItemTransmutationTable extends StorageItemExternal {
if (externalStorage.getOwner() != null) {
IKnowledgeProvider provider = ProjectEAPI.getTransmutationProxy().getKnowledgeProviderFor(externalStorage.getOwner());
+ // @todo: https://github.com/sinkillerj/ProjectE/issues/1591
+ if (!provider.getClass().getName().equals("moze_intel.projecte.impl.TransmutationOffline$1")) {
int emc = ProjectEAPI.getEMCProxy().getValue(actualStack) * size;
if (emc == 0) {
@@ -73,6 +78,7 @@ public class StorageItemTransmutationTable extends StorageItemExternal {
return null;
}
+ }
return actualStack;
}
@@ -83,7 +89,8 @@ public class StorageItemTransmutationTable extends StorageItemExternal {
if (externalStorage.getOwner() != null) {
IKnowledgeProvider provider = ProjectEAPI.getTransmutationProxy().getKnowledgeProviderFor(externalStorage.getOwner());
- if (provider.hasKnowledge(stack)) {
+ // @todo: https://github.com/sinkillerj/ProjectE/issues/1591
+ if (!provider.getClass().getName().equals("moze_intel.projecte.impl.TransmutationOffline$1") && provider.hasKnowledge(stack)) {
double singleEmc = ProjectEAPI.getEMCProxy().getValue(stack);
int maxExtract = (int) Math.floor(provider.getEmc() / singleEmc);
