Skip to content

Commit

Permalink
Merge branch 'master' into blackhole-finishing
Browse files Browse the repository at this point in the history
  • Loading branch information
FourIsTheNumber committed Sep 7, 2024
2 parents d6d2e80 + 82604ea commit 87be29d
Show file tree
Hide file tree
Showing 41 changed files with 319 additions and 1,212 deletions.
1 change: 1 addition & 0 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ dependencies {
compileOnly("com.github.GTNewHorizons:BloodMagic:1.6.5:dev") { transitive = false }
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.4.0:dev") { transitive = false }
compileOnly("com.github.GTNewHorizons:BetterLoadingScreen:1.7.0-GTNH:dev") { transitive = false }
compileOnly rfg.deobf("curse.maven:biomes-o-plenty-220318:2499612")

compileOnly('com.github.GTNewHorizons:SC2:2.2.0:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:Binnie:2.4.1:dev') {transitive = false}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/bwcrossmod/galacticgreg/MTEVoidMinerBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ private void handleOutputs() {
final List<ItemStack> inputOres = this.getStoredInputs()
.stream()
.filter(GTUtility::isOre)
.collect(Collectors.toList());;
.collect(Collectors.toList());
final ItemStack output = this.nextOre();
output.stackSize = multiplier;
if (inputOres.size() == 0 || this.mBlacklist && inputOres.stream()
if (inputOres.isEmpty() || this.mBlacklist && inputOres.stream()
.noneMatch(is -> GTUtility.areStacksEqual(is, output))
|| !this.mBlacklist && inputOres.stream()
.anyMatch(is -> GTUtility.areStacksEqual(is, output)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ public boolean onRunningTick(ItemStack aStack) {
if (tFluid == null) continue;
if (isFluidLocked) {
if (mLockedFluid != null) {
if (!tFluid.isFluidEqual(mLockedFluid)) continue;;
if (!tFluid.isFluidEqual(mLockedFluid)) continue;
} else {
mLockedFluid = tFluid.copy();
mLockedFluid.amount = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gregtech/GTMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public class GTMod implements IGTMod {
clientSide = "gregtech.common.GTClient",
serverSide = "gregtech.common.GTServer")
public static GTProxy gregtechproxy;
public static final boolean DEBUG = Boolean.getBoolean("gt.debug");;
public static final boolean DEBUG = Boolean.getBoolean("gt.debug");

public static int MAX_IC2 = 2147483647;
public static GTAchievements achievements;
Expand Down
13 changes: 8 additions & 5 deletions src/main/java/gregtech/api/enums/SoundResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,14 @@ public enum SoundResource {
GT_MACHINES_WATER_PUMP_LOOP(234, GregTech.ID, "machines.WaterPumpLoop"),
GT_MACHINES_STEAM_CENTRIFUGE_LOOP(235, GregTech.ID, "machines.SteamCentrifugeLoop"),

GT_MACHINES_PURIFICATIONPLANT_LOOP(233, GregTech.ID, "machines.PurificationPlantLoop"),
GT_MACHINES_PURIFICATION_PH_LOOP(234, GregTech.ID, "machines.PurificationPhLoop"),
GT_MACHINES_COAGULATION_LOOP(235, GregTech.ID, "machines.PurificationCoagulationLoop"),
GT_MACHINES_OZONATION_LOOP(236, GregTech.ID, "machines.PurificationOzonationLoop"),
GT_MACHINES_PURIFICATION_PLASMA_LOOP(237, "machines.PurificationPlasmaLoop"),
GT_MACHINES_PURIFICATIONPLANT_LOOP(236, GregTech.ID, "machines.PurificationPlantLoop"),
GT_MACHINES_PURIFICATION_PH_LOOP(237, GregTech.ID, "machines.PurificationPhLoop"),
GT_MACHINES_COAGULATION_LOOP(238, GregTech.ID, "machines.PurificationCoagulationLoop"),
GT_MACHINES_OZONATION_LOOP(239, GregTech.ID, "machines.PurificationOzonationLoop"),
GT_MACHINES_PURIFICATION_PLASMA_LOOP(240, "machines.PurificationPlasmaLoop"),

GT_MACHINES_MULTI_LATHE_LOOP(241, GregTech.ID, "machines.MultiLatheLoop"),
GT_MACHINES_MULTI_AUTOCLAVE_LOOP(242, GregTech.ID, "machines.MultiAutoclaveLoop"),

GUI_BUTTON_DOWN(-1, GregTech.ID, "gui.buttonDown"),
GUI_BUTTON_UP(-1, GregTech.ID, "gui.buttonUp"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void onFirstTick(IGregTechTileEntity aBaseMetaTileEntity) {
// UUID of the owner.
owner_uuid = aBaseMetaTileEntity.getOwnerUuid();

SpaceProjectManager.checkOrCreateTeam(owner_uuid);;
SpaceProjectManager.checkOrCreateTeam(owner_uuid);

tryFetchingEnergy();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
Expand All @@ -44,9 +45,12 @@
import com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment;
import com.gtnewhorizon.structurelib.structure.StructureDefinition;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gregtech.api.GregTechAPI;
import gregtech.api.enums.HeatingCoilLevel;
import gregtech.api.enums.Materials;
import gregtech.api.enums.SoundResource;
import gregtech.api.enums.Textures;
import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
Expand Down Expand Up @@ -289,6 +293,12 @@ public int survivalConstruct(ItemStack stackSize, int elementBudget, ISurvivalBu
return build;
}

@SideOnly(Side.CLIENT)
@Override
protected ResourceLocation getActivitySoundLoop() {
return SoundResource.GT_MACHINES_MULTI_AUTOCLAVE_LOOP.resourceLocation;
}

@Override
public boolean isCorrectMachinePart(ItemStack aStack) {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
Expand All @@ -37,7 +38,10 @@
import com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment;
import com.gtnewhorizon.structurelib.structure.StructureDefinition;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gregtech.api.GregTechAPI;
import gregtech.api.enums.SoundResource;
import gregtech.api.enums.Textures;
import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
Expand Down Expand Up @@ -265,6 +269,12 @@ public int survivalConstruct(ItemStack stackSize, int elementBudget, ISurvivalBu
return build;
}

@SideOnly(Side.CLIENT)
@Override
protected ResourceLocation getActivitySoundLoop() {
return SoundResource.GT_MACHINES_MULTI_LATHE_LOOP.resourceLocation;
}

private int mCasingAmount;

private void onCasingAdded() {
Expand Down
Loading

0 comments on commit 87be29d

Please sign in to comment.