Skip to content

Commit

Permalink
fix: Fix Minecraft 1.19.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveplays28 committed Dec 1, 2023
1 parent b32847d commit 8ba1f74
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.28
minecraft_version=1.19.3
yarn_mappings=1.19.3+build.5
loader_version=0.14.10

# Mod Properties
Expand All @@ -14,7 +14,7 @@ archives_base_name=realisticsleep
supported_minecraft_version=1.19.x

# Dependencies
fabric_version=0.72.0+1.19.2
cloth_config_version=7.0.69
modmenu_version=4.1.2
fabric_version=0.72.0+1.19.3
cloth_config_version=9.1.104
modmenu_version=5.1.0
server_translation_api_version=1.4.16+1.19
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import net.minecraft.entity.LightningEntity;
import net.minecraft.fluid.Fluid;
import net.minecraft.network.packet.s2c.play.WorldTimeUpdateS2CPacket;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.entry.RegistryEntry;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.server.world.ServerChunkManager;
Expand All @@ -18,8 +20,6 @@
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.profiler.Profiler;
import net.minecraft.util.registry.RegistryEntry;
import net.minecraft.util.registry.RegistryKey;
import net.minecraft.village.raid.RaidManager;
import net.minecraft.world.*;
import net.minecraft.world.biome.Biome;
Expand Down Expand Up @@ -102,8 +102,8 @@ public abstract class ServerWorldMixin extends World implements ServerWorldExten
@Final
private static int MAX_TICKS;

protected ServerWorldMixin(MutableWorldProperties properties, RegistryKey<World> registryRef, RegistryEntry<DimensionType> registryEntry, Supplier<Profiler> profiler, boolean isClient, boolean debugWorld, long seed, int maxChainedNeighborUpdates) {
super(properties, registryRef, registryEntry, profiler, isClient, debugWorld, seed, maxChainedNeighborUpdates);
protected ServerWorldMixin(MutableWorldProperties properties, RegistryKey<World> registryRef, RegistryEntry<DimensionType> dimension, Supplier<Profiler> profiler, boolean isClient, boolean debugWorld, long seed, int maxChainedNeighborUpdates) {
super(properties, registryRef, dimension, profiler, isClient, debugWorld, seed, maxChainedNeighborUpdates);
}

@Inject(method = "tick", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/GameRules;getInt(Lnet/minecraft/world/GameRules$Key;)I"))
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
"minecraft": [
"1.19.x"
],
"cloth-config": ">=5.3.63",
"cloth-config": ">=9.1.104",
"fabric": ">=0.48.0"
},
"suggests": {
"modmenu": ">=3.0.0"
"modmenu": ">=5.1.0"
},
"conflicts": {
"tawct": "*",
Expand Down

0 comments on commit 8ba1f74

Please sign in to comment.