From 1ec4cf134df788d67182044f2d662aa54d3f02d0 Mon Sep 17 00:00:00 2001 From: Prototik Date: Sat, 24 Oct 2015 17:31:46 +0700 Subject: [PATCH] Remove health scaling --- .../java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 3a1765c..4b89cce 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1,7 +1,6 @@ package org.bukkit.craftbukkit.entity; import com.google.common.collect.ImmutableSet; -import com.google.common.collect.MapMaker; import java.io.ByteArrayOutputStream; import java.io.IOException; @@ -22,7 +21,6 @@ import com.mojang.authlib.GameProfile; import net.minecraft.entity.EntityTracker; import net.minecraft.entity.EntityTrackerEntry; -import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.network.play.server.S23PacketBlockChange; import net.minecraft.network.play.server.S33PacketUpdateSign; @@ -80,11 +78,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player { super(server, entity); firstPlayed = System.currentTimeMillis(); - double maxHealth = entity.getEntityAttribute(SharedMonsterAttributes.maxHealth).getBaseValue(); - if (maxHealth != health) { - healthScale = maxHealth; - scaledHealth = true; - } } public GameProfile getProfile() {