Update to 9.0.7

This commit is contained in:
libraryaddict 2016-06-13 21:39:48 +12:00
parent 410b96dafe
commit 291942b9b4
3 changed files with 34 additions and 32 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>LibsDisguises</groupId>
<artifactId>LibsDisguises</artifactId>
<version>9.0.6-SNAPSHOT</version>
<version>9.0.7</version>
<build>
<sourceDirectory>src</sourceDirectory>

View File

@ -811,6 +811,8 @@ public abstract class Disguise
getWatcher().setBackupValue(flag, backup == null ? null : backup.getDefault());
}
getWatcher().setNoGravity(true);
}
public Disguise setVelocitySent(boolean sendVelocity)

View File

@ -1,31 +1,31 @@
package me.libraryaddict.disguise.disguisetypes;
public enum RabbitType
{
BLACK(2), BROWN(0), GOLD(4), KILLER_BUNNY(99), PATCHES(3), PEPPER(5), WHITE(1);
public static RabbitType getType(int id)
{
for (RabbitType type : values())
{
if (type.getTypeId() == id)
{
return type;
}
}
return null;
}
private int type;
RabbitType(int type)
{
this.type = type;
}
public int getTypeId()
{
return type;
}
}
package me.libraryaddict.disguise.disguisetypes;
public enum RabbitType
{
BLACK(2), BROWN(0), GOLD(4), KILLER_BUNNY(99), PATCHES(3), PEPPER(5), WHITE(1);
public static RabbitType getType(int id)
{
for (RabbitType type : values())
{
if (type.getTypeId() == id)
{
return type;
}
}
return null;
}
private int type;
private RabbitType(int type)
{
this.type = type;
}
public int getTypeId()
{
return type;
}
}