chore: update to 1.21.3
This commit is contained in:
parent
fa5aa9edf9
commit
c4aed126d8
@ -16,11 +16,11 @@ base.archivesName = "breakme"
|
|||||||
|
|
||||||
// https://fabricmc.net/develop/
|
// https://fabricmc.net/develop/
|
||||||
jfMod {
|
jfMod {
|
||||||
minecraftVersion = "1.21"
|
minecraftVersion = "1.21.3"
|
||||||
yarn("build.1")
|
yarn("build.2")
|
||||||
loaderVersion = "0.15.11"
|
loaderVersion = "0.16.7"
|
||||||
libJfVersion = "3.16.0"
|
libJfVersion = "3.18.0"
|
||||||
fabricApiVersion = "0.100.1+1.21"
|
fabricApiVersion = "0.106.1+1.21.3"
|
||||||
|
|
||||||
modrinth {
|
modrinth {
|
||||||
projectId = "breakme"
|
projectId = "breakme"
|
||||||
@ -43,7 +43,7 @@ dependencies {
|
|||||||
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-devutil")
|
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-devutil")
|
||||||
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-config-ui-tiny")
|
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-config-ui-tiny")
|
||||||
modLocalRuntime("net.fabricmc.fabric-api:fabric-api")
|
modLocalRuntime("net.fabricmc.fabric-api:fabric-api")
|
||||||
modLocalRuntime("com.terraformersmc:modmenu:11.0.0-beta.1")
|
modLocalRuntime("com.terraformersmc:modmenu:12.0.0-beta.1")
|
||||||
}
|
}
|
||||||
|
|
||||||
loom {
|
loom {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
maven("https://maven.fabricmc.net/") // FabricMC
|
maven("https://maven.frohnmeyer-wds.de/mirrors")
|
||||||
maven("https://maven.frohnmeyer-wds.de/artifacts") // scripts
|
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ import io.gitlab.jfronny.breakme.BreakMe;
|
|||||||
import io.gitlab.jfronny.breakme.BreakMeConfig;
|
import io.gitlab.jfronny.breakme.BreakMeConfig;
|
||||||
import net.minecraft.entity.damage.DamageSource;
|
import net.minecraft.entity.damage.DamageSource;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
import net.minecraft.server.world.ServerWorld;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
@ -12,9 +13,9 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
|||||||
|
|
||||||
@Mixin(PlayerEntity.class)
|
@Mixin(PlayerEntity.class)
|
||||||
public class PlayerEntityMixin {
|
public class PlayerEntityMixin {
|
||||||
@Inject(at = @At("TAIL"), method = "damage(Lnet/minecraft/entity/damage/DamageSource;F)Z")
|
@Inject(at = @At("TAIL"), method = "damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z")
|
||||||
private void onDamage(DamageSource source, float amount, CallbackInfoReturnable<Boolean> info) throws Exception {
|
private void onDamage(ServerWorld world, DamageSource source, float amount, CallbackInfoReturnable<Boolean> cir) throws Exception {
|
||||||
if (info.getReturnValue()) {
|
if (cir.getReturnValue()) {
|
||||||
BreakMe.tryInvokeCrash(BreakMe.resolveEvent((PlayerEntity)(Object)this));
|
BreakMe.tryInvokeCrash(BreakMe.resolveEvent((PlayerEntity)(Object)this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user