Skip to content

Commit

Permalink
Fix meta
Browse files Browse the repository at this point in the history
Morph's fault on at least one of the two
  • Loading branch information
mcmonkey4eva committed Jul 25, 2015
1 parent 500f703 commit d73fcba
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Expand Up @@ -28,8 +28,6 @@ public class EntityUnleashedScriptEvent extends BukkitScriptEvent implements Lis
// @Context
// <context.entity> returns the dEntity.
// <context.reason> returns an Element of the reason for the unleashing.
//
// @Note
// Reasons include DISTANCE, HOLDER_GONE, PLAYER_UNLEASH, and UNKNOWN
//
// -->
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/aufdemrand/denizen/objects/dCuboid.java
Expand Up @@ -1301,7 +1301,7 @@ public void adjust(Mechanism mechanism) {
Element value = mechanism.getValue();

// TODO: Better mechanisms!

if (mechanism.matches("outset")) {
int mod = 1;
if (value != null && mechanism.requireInteger("Invalid integer specified. Assuming '1'."))
Expand Down
Expand Up @@ -1889,7 +1889,7 @@ && getBlock().getState() instanceof CreatureSpawner) {
// <--[mechanism]
// @object dLocation
// @name base_color
// @inout Element
// @input Element
// @description
// Changes the base color of the banner at this location.
// For the list of possible colors, see <@link url http://bit.ly/1dydq12>.
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/net/aufdemrand/denizen/objects/dWorld.java
Expand Up @@ -662,13 +662,14 @@ public void adjust(Mechanism mechanism) {
// @name difficulty
// @input Element
// @description
// Sets the limit for number of animals that can spawn in a chunk in this world.
// Sets the difficulty level of this world.
// Possible values: Peaceful, Easy, Normal, Hard.
// @tags
// <w@world.difficulty>
// -->
if (mechanism.matches("difficulty") && mechanism.requireEnum(true, Difficulty.values())) {
String upper = value.asString().toUpperCase();
Difficulty diff = null;
Difficulty diff;
if (upper.matches("(PEACEFUL|EASY|NORMAL|HARD)")) {
diff = Difficulty.valueOf(upper);
}
Expand Down

0 comments on commit d73fcba

Please sign in to comment.