Boolean checking for Swets
This commit is contained in:
parent
48dbe59d32
commit
c20c8c6af4
|
@ -573,7 +573,14 @@ public class EntitySwet extends EntityMountable
|
|||
|
||||
public boolean isFriendly()
|
||||
{
|
||||
return this.dataManager.get(FRIENDLY);
|
||||
Object obj = this.dataManager.get(FRIENDLY);
|
||||
|
||||
if (!(obj instanceof Boolean))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return (Boolean) obj;
|
||||
}
|
||||
|
||||
private void setFriendly(boolean friendly)
|
||||
|
|
Loading…
Reference in a new issue