Remove health scaling
This commit is contained in:
parent
1d94d55290
commit
1ec4cf134d
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user