From 2070c8b850c8305891910e6d34c7cc3cf8bd6b15 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 28 Dec 2022 21:45:21 +0100 Subject: [PATCH] Fix SpaceListener --- .../steamwar/misslewars/listener/special/SpaceListener.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/misslewars/listener/special/SpaceListener.java b/src/de/steamwar/misslewars/listener/special/SpaceListener.java index c6d369f..654811a 100644 --- a/src/de/steamwar/misslewars/listener/special/SpaceListener.java +++ b/src/de/steamwar/misslewars/listener/special/SpaceListener.java @@ -51,7 +51,8 @@ public class SpaceListener extends BasicListener { Player player = event.getPlayer(); player.addPotionEffect(new PotionEffect(PotionEffectType.JUMP, Integer.MAX_VALUE, 3)); player.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_FALLING, Integer.MAX_VALUE, 3)); - player.setHealth(2.5); + player.setHealth(0.5); + player.setHealthScale(0.5); }, 5); } @@ -62,7 +63,8 @@ public class SpaceListener extends BasicListener { Player player = event.getPlayer(); player.addPotionEffect(new PotionEffect(PotionEffectType.JUMP, Integer.MAX_VALUE, 3)); player.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_FALLING, Integer.MAX_VALUE, 3)); - player.setHealth(2.5); + player.setHealth(0.5); + player.setHealthScale(0.5); }, 5); }