Compare commits

...
Author SHA1 Message Date
Martin Robertz 80f07a4dc6 Merge pull request #53 from asdflj/super_speed_card
add super speed card support
2023-01-03 12:57:58 +01:00
Martin Robertz 8654ce8ad3 Merge pull request #52 from asdflj/fluid_terminal
fix fluid terminal crash
2023-01-03 12:57:46 +01:00
asdflj 42c47a3a3e add super speed card support 2023-01-03 16:25:33 +08:00
Martin Robertz 644e3e2a6f Merge pull request #50 from asdflj/io_bus
fix io bus shift click upgrade card crash
2023-01-03 08:48:03 +01:00
Martin Robertz 95dc2e0717 Merge pull request #51 from asdflj/levelmaintainer
fix bug
2023-01-03 08:47:33 +01:00
asdflj dd9d4df44b fix fluid terminal crash 2023-01-03 15:27:47 +08:00
asdflj 0ca9a9f46c fix bug 2023-01-03 10:16:24 +08:00
asdflj 0a11fb0431 fix io bus shift click crash 2022-12-24 16:58:27 +08:00
7 changed files with 25 additions and 23 deletions

No files matched your search

+2 -1
View File
@@ -2,7 +2,7 @@
dependencies {
compile('com.github.GTNewHorizons:NotEnoughItems:2.3.10-GTNH:dev')
compile('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-127-GTNH:dev')
compile('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-133-GTNH:dev')
compile('curse.maven:cofh-core-69162:2388751')
compile('com.github.GTNewHorizons:waila:1.5.22:dev')
compileOnly('com.github.GTNewHorizons:ExtraCells2:2.5.25:dev') { transitive = false }
@@ -23,5 +23,6 @@ dependencies {
compileOnly('com.github.GTNewHorizons:EnderIO:2.3.1.29:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:GTplusplus:1.7.49:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:KekzTech:0.6.22:dev')
runtime('com.github.GTNewHorizons:Baubles:1.0.1.14:dev')
}
@@ -85,6 +85,8 @@ public class FluidCraft {
Upgrades.REDSTONE.registerItem(new ItemStack(ItemAndBlockHolder.FLUID_IMPORT_BUS), 1);
Upgrades.SPEED.registerItem(new ItemStack(ItemAndBlockHolder.FLUID_EXPORT_BUS), 4);
Upgrades.SPEED.registerItem(new ItemStack(ItemAndBlockHolder.FLUID_IMPORT_BUS), 4);
Upgrades.SUPERSPEED.registerItem(new ItemStack(ItemAndBlockHolder.FLUID_EXPORT_BUS), 4);
Upgrades.SUPERSPEED.registerItem(new ItemStack(ItemAndBlockHolder.FLUID_IMPORT_BUS), 4);
Upgrades.CRAFTING.registerItem(new ItemStack(ItemAndBlockHolder.FLUID_EXPORT_BUS), 1);
}
@@ -54,22 +54,7 @@ public abstract class ContainerFluidConfigurable extends ContainerUpgradeable {
this.standardDetectAndSendChanges();
return null;
} else {
if (idx < this.availableUpgrades()) {
if (!mergeItemStack(
tis,
this.getFakeFluidInv().getSizeInventory() + this.availableUpgrades(),
this.inventorySlots.size(),
false)) return null;
} else if (idx >= this.getFakeFluidInv().getSizeInventory() + this.availableUpgrades()) {
if (!mergeItemStack(tis, 0, this.availableUpgrades(), false)) return null;
}
if (tis.stackSize == 0) {
clickSlot.putStack(null);
} else {
clickSlot.onSlotChanged();
}
this.standardDetectAndSendChanges();
return tis;
return super.transferStackInSlot(p, idx);
}
}
@@ -385,6 +385,7 @@ public class FCBaseFluidMonitorContain extends AEBaseContainer
IAEFluidStack tmp = this.host
.getFluidInventory()
.extractItems(toExtract, Actionable.SIMULATE, this.getActionSource());
if (tmp == null) continue;
fillStack.right.stackSize = (int) (tmp.getStackSize() / fillStack.left);
this.dropItem(fillStack.right);
out.stackSize = fillStack.right.stackSize;
@@ -115,10 +115,18 @@ public abstract class PartSharedFluidBus extends PartUpgradeable implements IGri
amount = amount * 4;
case 1:
amount = amount * 8;
case 0:
default:
return (int) Math.floor(amount);
}
switch (this.getInstalledUpgrades(Upgrades.SUPERSPEED)) {
case 4:
amount = amount * 8;
case 3:
amount = amount * 12;
case 2:
amount = amount * 16;
case 1:
amount = amount * 32;
}
return (int) Math.floor(amount);
}
@Override
@@ -82,8 +82,12 @@ public class TileLevelMaintainer extends AENetworkTile
.getStorage()
.getFluidInventory()
.injectItems(ItemFluidDrop.getAeFluidStack(items), mode, this.source);
items.setStackSize(notInserted.getStackSize());
return items;
if (notInserted != null) {
items.setStackSize(notInserted.getStackSize());
return items;
} else {
return null;
}
} else {
return this.getProxy().getStorage().getItemInventory().injectItems(items, mode, this.source);
}
@@ -2,6 +2,7 @@ package com.glodblock.github.crossmod.waila;
import appeng.api.parts.IPartHost;
import appeng.tile.AEBaseTile;
import appeng.util.Platform;
import codechicken.nei.guihook.GuiContainerManager;
import cpw.mods.fml.common.event.FMLInterModComms;
import mcp.mobius.waila.api.IWailaDataProvider;
@@ -17,7 +18,7 @@ public class WailaInit {
final IWailaDataProvider part = new PartWailaDataProvider();
registrar.registerBodyProvider(part, IPartHost.class);
registrar.registerNBTProvider(part, IPartHost.class);
GuiContainerManager.addTooltipHandler(new FCTooltipHandlerWaila());
if (Platform.isClient()) GuiContainerManager.addTooltipHandler(new FCTooltipHandlerWaila());
final IWailaDataProvider tile = new TileWailaDataProvider();
registrar.registerBodyProvider(tile, AEBaseTile.class);