Skip to content

Commit

Permalink
Update Fabric to MC 1.21 (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrexHD authored Jun 16, 2024
1 parent e70616b commit 1e9a237
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions spark-fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ configurations {

dependencies {
// https://modmuss50.me/fabric.html
minecraft 'com.mojang:minecraft:1.20.6'
mappings 'net.fabricmc:yarn:1.20.6+build.1:v2'
modImplementation 'net.fabricmc:fabric-loader:0.15.10'
minecraft 'com.mojang:minecraft:1.21'
mappings 'net.fabricmc:yarn:1.21+build.1:v2'
modImplementation 'net.fabricmc:fabric-loader:0.15.11'

Set<String> apiModules = [
"fabric-api-base",
Expand All @@ -40,12 +40,12 @@ dependencies {

// Add each module as a dependency
apiModules.forEach {
modImplementation(fabricApi.module(it, '0.97.8+1.20.6'))
modImplementation(fabricApi.module(it, '0.100.1+1.21'))
}

include(modImplementation('me.lucko:fabric-permissions-api:0.3.1'))

modImplementation('eu.pb4:placeholder-api:2.4.0-pre.1+1.20.5')
modImplementation('eu.pb4:placeholder-api:2.4.0-pre.2+1.21')

shade project(':spark-common')
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
import me.lucko.spark.fabric.mixin.ServerWorldAccessor;

import net.minecraft.client.MinecraftClient;
import net.minecraft.client.world.ClientEntityManager;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.world.ServerEntityManager;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.math.ChunkPos;
import net.minecraft.world.entity.ClientEntityManager;
import net.minecraft.world.entity.EntityIndex;
import net.minecraft.world.entity.EntityTrackingSection;
import net.minecraft.world.entity.SectionedEntityCache;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

package me.lucko.spark.fabric.mixin;

import net.minecraft.client.world.ClientEntityManager;
import net.minecraft.entity.Entity;
import net.minecraft.world.entity.ClientEntityManager;
import net.minecraft.world.entity.EntityIndex;
import net.minecraft.world.entity.SectionedEntityCache;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

package me.lucko.spark.fabric.mixin;

import net.minecraft.client.world.ClientEntityManager;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.entity.Entity;

import net.minecraft.world.entity.ClientEntityManager;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public enum SparkFabricPlaceholderApi {
public static void register(SparkPlatform platform) {
for (SparkPlaceholder placeholder : SparkPlaceholder.values()) {
Placeholders.register(
new Identifier("spark", placeholder.getName()),
Identifier.of("spark", placeholder.getName()),
new Handler(platform, placeholder)
);
}
Expand Down

0 comments on commit 1e9a237

Please sign in to comment.