Skip to content

Commit

Permalink
Merge pull request #13 from CamperSamu/1.20.4
Browse files Browse the repository at this point in the history
Update to 1.20.4
  • Loading branch information
PinkGoosik authored Dec 13, 2023
2 parents 97f7ec8 + f3ec336 commit 603cf6c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 52 deletions.
18 changes: 9 additions & 9 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ org.gradle.parallel = true
# Mod Properties
maven_group = ru.pinkgoosik
archives_base_name = skylands
mod_version = 0.4.0+1.20.2
mod_version = 0.4.0+1.20.4

# Dependencies | Check these on https://fabricmc.net/develop
minecraft_version = 1.20.2
yarn_mappings = 1.20.2+build.1
fabric_loader = 0.14.22
fabric_api = 0.89.1+1.20.2
minecraft_version = 1.20.4
yarn_mappings = 1.20.4+build.2
fabric_loader = 0.15.1
fabric_api = 0.91.1+1.20.4

# https://github.com/OnyxStudios/Cardinal-Components-API/releases
cca = 5.3.0
cca = 5.4.0
# https://github.com/NucleoidMC/fantasy/releases
fantasy = 0.4.11+1.20-rc1
fantasy = 0.5.0+1.20.4
# https://github.com/Patbox/TextPlaceholderAPI/releases
placeholder_api = 2.2.0+1.20.2
placeholder_api = 2.3.0+1.20.3
# https://github.com/NucleoidMC/Server-Translations/releases
server_translations_api = 2.1.0+1.20.2-rc2
server_translations_api = 2.2.0+1.20.3-rc1
7 changes: 4 additions & 3 deletions src/main/java/skylands/mixin/world/ServerWorldMixin.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package skylands.mixin.world;

import com.google.common.collect.ImmutableList;
import net.minecraft.block.entity.Spawner;
import net.minecraft.entity.Entity;
import net.minecraft.registry.DynamicRegistryManager;
import net.minecraft.registry.RegistryKey;
Expand Down Expand Up @@ -30,7 +31,7 @@
import net.minecraft.world.spawner.CatSpawner;
import net.minecraft.world.spawner.PatrolSpawner;
import net.minecraft.world.spawner.PhantomSpawner;
import net.minecraft.world.spawner.Spawner;
import net.minecraft.world.spawner.SpecialSpawner;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Mutable;
Expand All @@ -52,14 +53,14 @@ public abstract class ServerWorldMixin extends World implements StructureWorldAc

@Mutable @Shadow @Final private ServerChunkManager chunkManager;
@Shadow @Final private ServerEntityManager<Entity> entityManager;
@Mutable @Shadow @Final private List<Spawner> spawners;
@Mutable @Shadow @Final private List<SpecialSpawner> spawners;

protected ServerWorldMixin(MutableWorldProperties properties, RegistryKey<World> registryRef, DynamicRegistryManager registryManager, RegistryEntry<DimensionType> dimensionEntry, Supplier<Profiler> profiler, boolean isClient, boolean debugWorld, long biomeAccess, int maxChainedNeighborUpdates) {
super(properties, registryRef, registryManager, dimensionEntry, profiler, isClient, debugWorld, biomeAccess, maxChainedNeighborUpdates);
}

@Inject(method = "<init>", at = @At("TAIL"))
void init(MinecraftServer server, Executor workerExecutor, LevelStorage.Session session, ServerWorldProperties properties, RegistryKey<World> worldKey, DimensionOptions dimensionOptions, WorldGenerationProgressListener worldGenerationProgressListener, boolean debugWorld, long seed, List<Spawner> spawners, boolean shouldTickTime, RandomSequencesState randomSequencesState, CallbackInfo ci) {
void init(MinecraftServer server, Executor workerExecutor, LevelStorage.Session session, ServerWorldProperties properties, RegistryKey<World> worldKey, DimensionOptions dimensionOptions, WorldGenerationProgressListener worldGenerationProgressListener, boolean debugWorld, long seed, List<SpecialSpawner> spawners, boolean shouldTickTime, RandomSequencesState randomSequencesState, CallbackInfo ci) {

if(worldKey.getValue().getNamespace().equals(SkylandsMod.MOD_ID)) {
this.spawners = ImmutableList.of(new PhantomSpawner(), new PatrolSpawner(), new CatSpawner(), new ZombieSiegeManager(), new WanderingTraderManager(properties));
Expand Down
33 changes: 0 additions & 33 deletions src/main/java/skylands/mixin/world/protection/BoatMixin.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import net.minecraft.entity.damage.DamageSource;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.vehicle.AbstractMinecartEntity;
import net.minecraft.entity.vehicle.VehicleEntity;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand All @@ -13,10 +14,10 @@
import skylands.util.SkylandsTexts;
import skylands.util.WorldProtection;

@Mixin(AbstractMinecartEntity.class)
public abstract class MinecartMixin extends Entity {
@Mixin(VehicleEntity.class)
abstract class VehicleEntityMixin extends Entity {

public MinecartMixin(EntityType<?> type, World world) {
public VehicleEntityMixin(EntityType<?> type, World world) {
super(type, world);
}

Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
],
"contributors": [
"KujouMolean",
"Drex"
"Drex",
"Camper_Samu"
],
"contact": {
"homepage": "https://modrinth.com/mod/skylands",
Expand Down Expand Up @@ -40,7 +41,7 @@
"depends": {
"fabricloader": "*",
"fabric": "*",
"minecraft": ">=1.20.2-rc.1 <1.21",
"minecraft": ">=1.20.3 <1.21",
"java": ">=17"
}
}
3 changes: 1 addition & 2 deletions src/main/resources/skylands.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"world.protection.AxeItemMixin",
"world.protection.BarrelBlockMixin",
"world.protection.BlockItemMixin",
"world.protection.BoatMixin",
"world.protection.BoneMealItemMixin",
"world.protection.BucketItemMixin",
"world.protection.ButtonMixin",
Expand All @@ -36,12 +35,12 @@
"world.protection.ItemFrameEntityMixin",
"world.protection.LeverMixin",
"world.protection.LivingEntityMixin",
"world.protection.MinecartMixin",
"world.protection.RedstoneWireMixin",
"world.protection.RepeaterMixin",
"world.protection.ShovelItemMixin",
"world.protection.ShulkerBoxBlockMixin",
"world.protection.StorageMinecartMixin",
"world.protection.VehicleEntityMixin",
"world.protection.VillagerEntityMixin"
],
"injectors": {
Expand Down

0 comments on commit 603cf6c

Please sign in to comment.