This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
RelicCraft/src/main/java/com/thebrokenrail/reliccraft/mixin/MixinEnderDragonFight.java

18 lines
702 B
Java

package com.thebrokenrail.reliccraft.mixin;
import net.minecraft.entity.boss.dragon.EnderDragonFight;
import org.objectweb.asm.Opcodes;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;
@SuppressWarnings("unused")
@Mixin(EnderDragonFight.class)
public class MixinEnderDragonFight {
@SuppressWarnings("SameReturnValue")
@Redirect(at = @At(value = "FIELD", target = "Lnet/minecraft/entity/boss/dragon/EnderDragonFight;previouslyKilled:Z", opcode = Opcodes.GETFIELD), method = "dragonKilled")
public boolean forceDragonEggSpawn(EnderDragonFight enderDragonFight) {
return false;
}
}