Skip to content

Commit

Permalink
fix entity.is_living and .describe spawned vs not handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Dec 26, 2019
1 parent 6213ba0 commit a2a543e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -2457,7 +2457,7 @@ else if (object.getBukkitEntity() instanceof Hanging) {
// Not to be confused with the idea of being alive - see <@link tag EntityTag.is_spawned>.
// This tag is valid for entity type objects.
// -->
registerSpawnedOnlyTag("is_living", (attribute, object) -> {
registerTag("is_living", (attribute, object) -> {
if (object.entity == null && object.entity_type != null) {
return new ElementTag(object.entity_type.getBukkitEntityType().isAlive());
}
Expand Down Expand Up @@ -2638,7 +2638,7 @@ else if (object.getBukkitEntity() instanceof Hanging) {
// @description
// Returns the entity's full description, including all properties.
// -->
registerSpawnedOnlyTag("describe", (attribute, object) -> {
registerTag("describe", (attribute, object) -> {
String escript = object.getEntityScript();
return new ElementTag("e@" + (escript != null && escript.length() > 0 ? escript : object.getEntityType().getLowercaseName())
+ PropertyParser.getPropertiesString(object));
Expand Down

0 comments on commit a2a543e

Please sign in to comment.