Skip to content

Commit

Permalink
fix bork in PlayerTag.hide_entity mech when given 2 inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 3, 2020
1 parent bbda0c3 commit c3ce05b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -3054,7 +3054,7 @@ public void adjust(Mechanism mechanism) {
if (!mechanism.getValue().asString().isEmpty()) {
ListTag split = mechanism.valueAsType(ListTag.class);
if (split.size() > 0 && new ElementTag(split.get(0)).matchesType(EntityTag.class)) {
EntityTag entity = mechanism.valueAsType(EntityTag.class);
EntityTag entity = EntityTag.valueOf(split.get(0));
if (!entity.isSpawnedOrValidForTag()) {
Debug.echoError("Can't hide the unspawned entity '" + split.get(0) + "'!");
}
Expand Down

0 comments on commit c3ce05b

Please sign in to comment.