mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
parent
a6412581a6
commit
c239908aa3
@ -106,6 +106,10 @@ public class PlotListener {
|
|||||||
iterator.remove();
|
iterator.remove();
|
||||||
continue;
|
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);
|
double level = PlotSquared.platform().worldUtil().getHealth(player);
|
||||||
if (level != value.max) {
|
if (level != value.max) {
|
||||||
PlotSquared.platform().worldUtil().setHealth(player, Math.min(level + value.amount, value.max));
|
PlotSquared.platform().worldUtil().setHealth(player, Math.min(level + value.amount, value.max));
|
||||||
|
Loading…
Reference in New Issue
Block a user