mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 11:05:13 +01:00
Update CraftBukkit to 1.6.2
By: mbax <matt@phozop.net>
This commit is contained in:
parent
e05150ef39
commit
69a37fc533
3 changed files with 10 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
|||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>craftbukkit</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.6.1-R0.1-SNAPSHOT</version>
|
||||
<version>1.6.2-R0.1-SNAPSHOT</version>
|
||||
<name>CraftBukkit</name>
|
||||
<url>http://www.bukkit.org</url>
|
||||
|
||||
|
@ -12,8 +12,8 @@
|
|||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<api.version>unknown</api.version>
|
||||
<junit.version>4.11</junit.version>
|
||||
<minecraft.version>1.6.1</minecraft.version>
|
||||
<minecraft_version>1_6_R1</minecraft_version>
|
||||
<minecraft.version>1.6.2</minecraft.version>
|
||||
<minecraft_version>1_6_R2</minecraft_version>
|
||||
</properties>
|
||||
|
||||
<scm>
|
||||
|
|
|
@ -90,7 +90,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
|||
public void setMaxHealth(double amount) {
|
||||
Validate.isTrue(amount > 0, "Max health must be greater than 0");
|
||||
|
||||
getHandle().a(GenericAttributes.a).a(amount);
|
||||
getHandle().getAttributeInstance(GenericAttributes.a).setValue(amount);
|
||||
|
||||
if (getHealth() > amount) {
|
||||
setHealth(amount);
|
||||
|
|
|
@ -64,6 +64,12 @@ public class CraftPotionEffectType extends PotionEffectType {
|
|||
return "POISON";
|
||||
case 20:
|
||||
return "WITHER";
|
||||
case 21:
|
||||
return "HEALTH_BOOST";
|
||||
case 22:
|
||||
return "ABSORPTION";
|
||||
case 23:
|
||||
return "SATURATION";
|
||||
default:
|
||||
return "UNKNOWN_EFFECT_TYPE_" + handle.id;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue