mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-28 00:55:46 +00:00
seems to work
This commit is contained in:
1 parent
1c035f6110
commit
1c70006519
4 files changed
+57
-1
No files matched your search
+46
@@ -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"),
|
||||
|
||||
Reference in new issue
Block a user