Add a fire ward necklace that makes the player invulnerable to fire #18

Merged
BlakeRain merged 4 commits from BlakeRain/utamacraft:main into main 2023-12-02 01:05:55 +00:00
Showing only changes of commit cbd2ec1e21 - Show all commits

View File

@ -12,7 +12,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
public class EntityMixin {
@Inject(at = @At("HEAD"), method = "isInvulnerableTo", cancellable = true)
private void checkInvulnerabilities(DamageSource source, CallbackInfoReturnable<Boolean> cir) {
LogUtils.getLogger().info("DamageSource is fire");
if (source.isFire()) {
LogUtils.getLogger().info("DamageSource is fire");
}