From 86d7755a533293dc55d62dc5b051baa326d9b5af Mon Sep 17 00:00:00 2001 From: mathiascode Date: Thu, 27 Feb 2020 16:16:25 +0200 Subject: [PATCH] Fix compiling --- .gitignore | 0 src/main/java/pw/kaboom/icontrolu/ControlPlayer.java | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 .gitignore diff --git a/.gitignore b/.gitignore old mode 100755 new mode 100644 diff --git a/src/main/java/pw/kaboom/icontrolu/ControlPlayer.java b/src/main/java/pw/kaboom/icontrolu/ControlPlayer.java index f34d9b5..240752a 100644 --- a/src/main/java/pw/kaboom/icontrolu/ControlPlayer.java +++ b/src/main/java/pw/kaboom/icontrolu/ControlPlayer.java @@ -47,11 +47,11 @@ class Tick extends BukkitRunnable { target.setExhaustion(controller.getExhaustion()); target.setFlying(controller.isFlying()); target.setFoodLevel(controller.getFoodLevel()); - + if (controller.getMaxHealth() > 0) { target.setMaxHealth(controller.getMaxHealth()); } - + target.setHealth(controller.getHealth()); target.setLevel(controller.getLevel()); target.setSneaking(controller.isSneaking());