Skip to content

Commit

Permalink
update to GT 1.4.1+patch.2
Browse files Browse the repository at this point in the history
  • Loading branch information
screret committed Sep 14, 2024
1 parent e37de39 commit 3959076
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ dependencyResolutionManagement {
def vineFlowerVersion = "1.+"
def macheteVersion = "1.+"
def configurationVersion = "2.2.0"
def gtCeuVersion = "1.4.0"
def ldLibVersion = "1.0.27"
def gtCeuVersion = "1.4.1+patch.2"
def ldLibVersion = "1.0.27.b"
def mixinExtrasVersion = "0.2.0"
def mixinVersion = "0.8.6-SNAPSHOT"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
@SuppressWarnings("unused")
public class GCYRDimensionMarkers {

static {
GCYRRegistries.REGISTRATE.creativeModeTab(() -> null);
}

public static final BlockEntry<Block> LUNA_MARKER = createMarker("luna");
public static final BlockEntry<Block> MARS_MARKER = createMarker("mars");
public static final BlockEntry<Block> MERCURY_MARKER = createMarker("mercury");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import com.gregtechceu.gtceu.api.machine.IMachineBlockEntity;
import com.gregtechceu.gtceu.api.machine.multiblock.WorkableElectricMultiblockMachine;
import com.gregtechceu.gtceu.api.recipe.GTRecipe;
import com.gregtechceu.gtceu.api.recipe.logic.OCParams;
import com.gregtechceu.gtceu.api.recipe.logic.OCResult;
import com.gregtechceu.gtceu.common.data.GTDamageTypes;
import com.lowdragmc.lowdraglib.gui.util.ClickData;
import net.minecraft.ChatFormatting;
Expand All @@ -22,6 +24,7 @@
import net.minecraft.world.level.Level;
import net.minecraft.world.phys.AABB;
import net.minecraft.world.phys.Vec3;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.annotation.ParametersAreNonnullByDefault;
Expand Down Expand Up @@ -59,13 +62,13 @@ public void onStructureFormed() {
}

@Override
protected @Nullable GTRecipe getRealRecipe(GTRecipe recipe) {
protected @Nullable GTRecipe getRealRecipe(GTRecipe recipe, @NotNull OCParams params, @NotNull OCResult result) {
if (this.getLevel().dimensionType().hasCeiling()) return null;
if (recipe.data.contains("gcyr:repair_dyson_sphere")) {
IDysonSystem system = GCYRCapabilityHelper.getDysonSystem((ServerLevel) this.getLevel());
if (system != null && system.isDysonSphereActive() && (!system.activeDysonSphere().isNeedsMaintenance() || !this.getPos().equals(system.activeDysonSphere().getControllerPos()))) return null;
}
return super.getRealRecipe(recipe);
return super.getRealRecipe(recipe, params, result);
}

@Override
Expand Down

0 comments on commit 3959076

Please sign in to comment.