seems to work

This commit is contained in:
chrombread committed 2026-01-23 00:39:49 -08:00
1 parent 1c035f6110
commit 1c70006519
4 files changed
+57 -1

No files matched your search

+4 -1
View File
@@ -210,6 +210,9 @@ dependencies {
//Nostalgic World Generation 1.0.0
compileOnly(deobfCurse("nostalgiagenerator-927053:4816167"))
//Factorization 0.8.109
compileOnly(deobfCurse("PersonalSpace-819596:6536785"))
//RandomThings 2.2.4
compileOnly(deobfCurse("randomthings-59816:2225310"))
@@ -260,4 +263,4 @@ dependencies {
//needed by: Biome Wand
//Source: http://spacechase0.com/files/mcmod/1.7.10-SpaceCore-0.7.14.jar
compileOnly(deobf("mirror:1.7.10-SpaceCore:0.7.14"))
}
}
@@ -0,0 +1,46 @@
/*
* EndlessIDs
*
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
* 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.personalspace;
import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper;
import me.eigenraven.personalspace.world.PersonalChunkProvider;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.chunk.Chunk;
@Mixin(PersonalChunkProvider.class)
public class PersonalChunkProviderMixin {
@Shadow private int savedBiomeId = -1;
@Redirect(method = "provideChunk",
at = @At(value = "INVOKE",
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B"),
require = 1)
private byte[] setBiomesTweaked(Chunk instance) {
return BiomePatchHelper.getBiomeArrayTweaked(instance, i -> BiomeGenBase.getBiome(savedBiomeId));
}
}
@@ -78,6 +78,7 @@ import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Netherlicious;
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.NomadicTents;
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.NuclearTech;
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.OldWorldGen;
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.PersonalSpace;
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.RandomThings;
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.RealisticTerrainGeneration;
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.RealisticWorldGen;
@@ -342,6 +343,11 @@ public enum Mixin implements IMixins {
require(OldWorldGen),
common("biome.owg.ChunkGeneratorBetaMixin")),
Biome_PersonalSpace(Phase.LATE,
Ext.Biome,
require(PersonalSpace),
common("biome.personalspace.PersonalChunkProviderMixin")),
Biome_RandomThings(Phase.EARLY,
Ext.Biome,
require(RandomThings),
@@ -80,6 +80,7 @@ public enum TargetMod implements ITargetMod {
NomadicTents("com.yurtmod.main.NomadicTents"),
NuclearTech("com.hbm.main.MainRegistry"),
OldWorldGen("owg.OWG"),
PersonalSpace("me.eigenraven.personalspace.PersonalSpaceMod"),
Ruins("atomicstryker.ruins.common.RuinsMod"),
RealisticTerrainGeneration("rtg.RTG"),
RealisticWorldGen("rwg.RWG"),