diff --git a/patches/server/0118-Replay-Mod-API.patch b/patches/server/0118-Replay-Mod-API.patch index 045425a8..807c0c38 100644 --- a/patches/server/0118-Replay-Mod-API.patch +++ b/patches/server/0118-Replay-Mod-API.patch @@ -1132,10 +1132,10 @@ index 0000000000000000000000000000000000000000..852f2098d93d4437fe79af06e454d849 +} diff --git a/src/main/java/top/leavesmc/leaves/replay/ServerPhotographer.java b/src/main/java/top/leavesmc/leaves/replay/ServerPhotographer.java new file mode 100644 -index 0000000000000000000000000000000000000000..6579349b29491d3f8d86ad39312e51ce9c0fc587 +index 0000000000000000000000000000000000000000..ceac26080c5378d0e0fdd1bbda1ca26ead55b4c6 --- /dev/null +++ b/src/main/java/top/leavesmc/leaves/replay/ServerPhotographer.java -@@ -0,0 +1,197 @@ +@@ -0,0 +1,211 @@ +package top.leavesmc.leaves.replay; + +import com.mojang.authlib.GameProfile; @@ -1240,6 +1240,20 @@ index 0000000000000000000000000000000000000000..6579349b29491d3f8d86ad39312e51ce + remove(true); + } + ++ @Override ++ public boolean isInvulnerableTo(@NotNull DamageSource damageSource) { ++ return true; ++ } ++ ++ @Override ++ public boolean hurt(@NotNull DamageSource source, float amount) { ++ return false; ++ } ++ ++ @Override ++ public void setHealth(float health) { ++ } ++ + @NotNull + @Override + public ServerStatsCounter getStats() {