From 1cb068af0b8627ccde605c28f58533632f514467 Mon Sep 17 00:00:00 2001 From: boybook Date: Fri, 17 Jan 2025 17:32:49 +0800 Subject: [PATCH] make EntityLiving.checkTotemDeathProtection public. --- src/main/java/cn/nukkit/entity/EntityLiving.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/nukkit/entity/EntityLiving.java b/src/main/java/cn/nukkit/entity/EntityLiving.java index f0f9af93d4d..825b92dfa97 100644 --- a/src/main/java/cn/nukkit/entity/EntityLiving.java +++ b/src/main/java/cn/nukkit/entity/EntityLiving.java @@ -706,7 +706,7 @@ public int getBaseArmorValue() { return 0; } - protected boolean checkTotemDeathProtection(EntityDamageEvent source) { + public boolean checkTotemDeathProtection(EntityDamageEvent source) { switch (source.getCause()) { case SUICIDE: case VOID: