Skip to content

Commit

Permalink
Fixed the name of get/set_persistence to get/set_entity_persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Gallarno committed Jul 26, 2013
1 parent e548363 commit af8cc7b
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -1408,14 +1408,14 @@ public String docs() {
}

@api
public static class get_persistence extends EntityGetterFunction {
public static class get_entity_persistence extends EntityGetterFunction {

public Construct exec(Target t, Environment environment, Construct... args) throws ConfigRuntimeException {
return new CBoolean(Static.getLivingEntity(Static.getInt32(args[0], t), t).getRemoveWhenFarAway(), t);
}

public String getName() {
return "get_persistence";
return "get_entity_persistence";
}

public String docs() {
Expand All @@ -1424,15 +1424,15 @@ public String docs() {
}

@api
public static class set_persistence extends EntitySetterFunction {
public static class set_entity_persistence extends EntitySetterFunction {

public Construct exec(Target t, Environment environment, Construct... args) throws ConfigRuntimeException {
Static.getLivingEntity(Static.getInt32(args[0], t), t).setRemoveWhenFarAway(Static.getBoolean(args[1]));
return new CVoid(t);
}

public String getName() {
return "set_persistence";
return "set_entity_persistence";
}

public String docs() {
Expand Down

0 comments on commit af8cc7b

Please sign in to comment.