Compare commits

..
Author SHA1 Message Date
Martin Robertz f6db37d5aa fix 2025-04-03 18:38:35 +02:00
Martin Robertz 1b76b6fe31 Merge remote-tracking branch 'lordIcocain/super_stoker' into dev
# Conflicts:
#	src/main/java/com/glodblock/github/inventory/gui/GuiType.java
2025-04-03 18:32:32 +02:00
Guillaume Mercier efa84c5298 cleanup decompiled code
I'm honestly surprised this hasn't caused some sort of concurrency issue yet.
2025-04-03 18:31:19 +02:00
Guillaume Mercier 41234d1db7 Add chat log to help stop future dupes early
This will make it easier for players to report potential dupes in the future.
2025-04-03 18:31:18 +02:00
Guillaume Mercier aa730bccd8 Add one time log if removed fluid isn't the same as the requested fluid.
This should help us diagnose similar issues in the future.
2025-04-03 18:31:18 +02:00
Guillaume Mercier 694b44e668 fix unintentional voiding
thx cocain
2025-04-03 18:31:18 +02:00
Guillaume Mercier 6f84315d7b Make the fluid monitor more resilient.
- Add checks via the can drain and can fill methods of fluid tanks to prevent dupe bugs like the one encountered with the blockhead sink

the blockhead sink doesn't check the fluid passed to it during the drain or fill calls so it ended up draining itself instead of the required fluid when ever it was working

Adding some some sort of logging if the fluid extracted and the fluid requested aren't the same would be a good idea, and since there is no caching from the simulate phase, it's going to have to be done in both phases. It shouldn't just void the output though since the changes will have already been applied to the tank by the time we void out the values and we can't assume the fill function would work properly if the drain doesn't.
2025-04-03 18:31:18 +02:00
Maya 98094941e9 update 2025-04-03 18:31:17 +02:00
Kogepan229andMaya 0da13054c4 Allow math expression in Fluid Level Emitter GUI (#279)
Co-authored-by: Maya <[email protected]>
2025-04-03 18:31:17 +02:00
6f46796350 Partition gregtech fluids (#273)
Co-authored-by: Jurre Groenendijk <[email protected]>
Co-authored-by: Maya <[email protected]>
2025-04-03 18:31:17 +02:00
Guido de HartandMaya b864d57783 made ItemBaseWirelessTerminal.canHandle null-safe (#274)
Co-authored-by: Maya <[email protected]>
2025-04-03 18:31:17 +02:00
lordIcocainandMaya 69598060fd Fix pattern multi (#277)
Co-authored-by: Maya <[email protected]>
2025-04-03 18:31:17 +02:00
StaffiX 36eea73718 Change Creative Cell Capacity (#276) 2025-04-03 18:31:16 +02:00
Maya 6084618026 update 2025-04-03 18:31:16 +02:00
Kogepan229andMaya 4d9eeac4d7 Fix terminal key bindings for mouse (#270)
Co-authored-by: Maya <[email protected]>
2025-04-03 18:31:16 +02:00
Martin Robertz 8d275a4879 update 2025-04-03 18:31:16 +02:00
Kogepan229 9a9f5d9a00 Fix an issue that GT and AE2FC fluids could not be used with Creative Fluid Cell (#271) 2025-04-03 18:31:15 +02:00
Maya 7bf44529bf update 2025-04-03 18:31:15 +02:00
Maya 057fddf5ed Fix fluid containers with null empty items not deleting in fluid terminal (#267) 2025-04-03 18:31:15 +02:00
Maya 3490ec3740 update 2025-04-03 18:31:15 +02:00
Zoltán Szepesi 2f5624ee18 Read NBT tags combine and beSubstitute from ItemStack when converting them to FluidPattern (#268) 2025-04-03 18:31:14 +02:00
Martin Robertz 55738c23bc update 2025-04-03 18:31:14 +02:00
Martin Robertz 051dd60f57 convert to long like in ae2 code 2025-04-03 18:31:14 +02:00
Maya 8371264400 update 2025-04-03 18:31:14 +02:00
JuliaandJulia Dijkstra c962df1d3c Improve ME Fluid Auto Filler Performance (#266)
Co-authored-by: Julia Dijkstra <[email protected]>
2025-04-03 18:31:13 +02:00
4 changed files with 17 additions and 30 deletions

No files matched your search

+2 -2
View File
@@ -35,7 +35,7 @@
*/
dependencies {
api('com.github.GTNewHorizons:NotEnoughItems:2.7.34-GTNH:dev')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-579-GTNH-pre:dev')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-576-GTNH:dev')
api('curse.maven:cofh-core-69162:2388751')
api('com.github.GTNewHorizons:waila:1.8.4:dev')
api("com.github.GTNewHorizons:GTNHLib:0.6.18:dev")
@@ -48,7 +48,7 @@ dependencies {
compileOnly('com.github.GTNewHorizons:ExtraCells2:2.5.35:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:ForestryMC:4.10.5:dev')
compileOnly('com.github.GTNewHorizons:EnderIO:2.9.6:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.220:dev') {
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.216:dev') {
exclude group: 'com.github.GTNewHorizons', module: 'AE2FluidCraft-Rework'
exclude group: 'com.github.GTNewHorizons', module: 'Applied-Energistics-2-Unofficial'
}
@@ -374,7 +374,7 @@ public class FluidConvertingInventoryAdaptor extends InventoryAdaptor {
}
private boolean isItemConduit(TileEntity te) {
if (isConduit(te)) {
if (ModAndClassUtil.EIO && conduitClazz.isInstance(te)) {
try {
return eioTypeCheck.invoke(te, IItemConduit.class) != null;
} catch (InvocationTargetException | IllegalAccessException e) {
@@ -385,7 +385,7 @@ public class FluidConvertingInventoryAdaptor extends InventoryAdaptor {
}
private boolean isConduit(TileEntity te) {
return ModAndClassUtil.EIO && conduitClazz.isInstance(te);
return ModAndClassUtil.EIO && te instanceof IItemDuct;
}
private ItemStack fillEIOConduit(ItemStack item, TileEntity te, ForgeDirection direction) {
@@ -547,19 +547,6 @@ public enum GuiType {
}
}),
GUI_SUPER_STOKER(new TileGuiFactory<>(TileSuperStoker.class) {
@Override
protected Object createServerGui(EntityPlayer player, TileSuperStoker inv) {
return new ContainerSuperStoker(player.inventory, inv);
}
@Override
protected Object createClientGui(EntityPlayer player, TileSuperStoker inv) {
return new GuiSuperStoker(player.inventory, inv);
}
}),
WIRELESS_MAGNET_FILTER(new ItemGuiFactory<>(ITerminalHost.class) {
@Override
@@ -571,6 +558,19 @@ public enum GuiType {
protected Object createClientGui(EntityPlayer player, ITerminalHost inv) {
return new GuiMagnetFilter(player.inventory, inv);
}
}),
GUI_SUPER_STOKER(new TileGuiFactory<>(TileSuperStoker.class) {
@Override
protected Object createServerGui(EntityPlayer player, TileSuperStoker inv) {
return new ContainerSuperStoker(player.inventory, inv);
}
@Override
protected Object createClientGui(EntityPlayer player, TileSuperStoker inv) {
return new GuiSuperStoker(player.inventory, inv);
}
});
public static final List<GuiType> VALUES = ImmutableList.copyOf(values());
@@ -15,7 +15,6 @@ import net.minecraftforge.common.util.Constants;
import appeng.api.networking.crafting.ICraftingPatternDetails;
import appeng.api.storage.data.IAEItemStack;
import appeng.helpers.PatternHelper;
import appeng.util.Platform;
import appeng.util.item.AEItemStack;
public class FluidPatternDetails implements ICraftingPatternDetails, Comparable<FluidPatternDetails> {
@@ -205,16 +204,4 @@ public class FluidPatternDetails implements ICraftingPatternDetails, Comparable<
}
return stacks;
}
@Override
public void patternJustUsed() {
NBTTagCompound tag = Platform.openNbtData(patternStack);
tag.setLong("lastUsed", System.currentTimeMillis());
}
@Override
public long patternLastUsed() {
NBTTagCompound tag = Platform.openNbtData(patternStack);
return tag.getLong("lastUsed");
}
}