Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ minecraft_fp {

core {
coreModClass = "asm.EndlessIDsCore"
accessTransformerFile = "endlessids_at.cfg"
}

tokens {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
* EndlessIDs
*
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
* Copyright (C) 2025 Cardinalstar16
* All Rights Reserved
*
* The above copyright notice, this permission notice and the word "MEGA"
* shall be included in all copies or substantial portions of the Software.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, only version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package com.falsepattern.endlessids.mixin.mixins.common.biome.galaxyspace;

import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Pseudo;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;

import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.gen.ChunkProviderGenerate;

@Pseudo
@Mixin(targets = "galaxyspace.core.dimension.ChunkProviderSpaceLakes",
remap = false)

public abstract class ChunkProviderSpaceLakesGTNHMixin extends ChunkProviderGenerate
{

public ChunkProviderSpaceLakesGTNHMixin(World p_i2006_1_, long p_i2006_2_, boolean p_i2006_4_) {
super(p_i2006_1_, p_i2006_2_, p_i2006_4_);
}

/**
* @author Cardinalstar16
* @reason The Galaxy-space mod maintained by GTNH has a different class layout than
* non-GTNH versions of galaxy space. More importantly, biomesForGeneration is AT'd to be protected,
* but cannot be shadowed due to the fact that private members aren't in the byte code of the
* children classes (from what I understand).
*/
@SuppressWarnings("UnresolvedMixinReference")
@Redirect(method = "func_73154_d",
at = @At(value = "INVOKE",
target = "Lnet/minecraft/world/chunk/Chunk;func_76605_m()[B"),
require = 0,
expect = 0)
private byte[] setBiomesTweaked(Chunk chunk) {
return BiomePatchHelper.getBiomeArrayTweaked(chunk, biomesForGeneration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package com.falsepattern.endlessids.mixin.mixins.common.blockitem.vanilla;
package com.falsepattern.endlessids.mixin.mixins.common.blockitem.common;

import com.falsepattern.endlessids.constants.ExtendedConstants;
import com.falsepattern.endlessids.constants.VanillaConstants;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package com.falsepattern.endlessids.mixin.mixins.common.blockitem.vanilla;
package com.falsepattern.endlessids.mixin.mixins.common.blockitem.common;

import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
Expand Down
Loading