Add a fire ward necklace that makes the player invulnerable to fire #18
@ -12,7 +12,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
|||||||
public class EntityMixin {
|
public class EntityMixin {
|
||||||
@Inject(at = @At("HEAD"), method = "isInvulnerableTo", cancellable = true)
|
@Inject(at = @At("HEAD"), method = "isInvulnerableTo", cancellable = true)
|
||||||
private void checkInvulnerabilities(DamageSource source, CallbackInfoReturnable<Boolean> cir) {
|
private void checkInvulnerabilities(DamageSource source, CallbackInfoReturnable<Boolean> cir) {
|
||||||
LogUtils.getLogger().info("DamageSource is fire");
|
|
||||||
if (source.isFire()) {
|
if (source.isFire()) {
|
||||||
LogUtils.getLogger().info("DamageSource is fire");
|
LogUtils.getLogger().info("DamageSource is fire");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user