Compare commits

..

2 Commits

Author SHA1 Message Date
Pierre Maurice Schwang
3b57ec4e70 fix: don't heal dead players 2024-04-20 16:06:00 +02:00
Alexander Brandes
a6412581a6 Back to snapshot for development
Signed-off-by: Alexander Brandes <mc.cache@web.de>
2024-04-16 16:39:38 +02:00
2 changed files with 5 additions and 1 deletions

View File

@@ -106,6 +106,10 @@ public class PlotListener {
iterator.remove();
continue;
}
// Don't attempt to heal dead players - they will get stuck in the abyss (#4406)
if (PlotSquared.platform().worldUtil().getHealth(player) <= 0) {
continue;
}
double level = PlotSquared.platform().worldUtil().getHealth(player);
if (level != value.max) {
PlotSquared.platform().worldUtil().setHealth(player, Math.min(level + value.amount, value.max));

View File

@@ -22,7 +22,7 @@ plugins {
}
group = "com.intellectualsites.plotsquared"
version = "7.3.8"
version = "7.3.9-SNAPSHOT"
if (!File("$rootDir/.git").exists()) {
logger.lifecycle("""