Skip to content

Commit

Permalink
Probably fix banner mechs, for #1175
Browse files Browse the repository at this point in the history
Who writes this stuff???
  • Loading branch information
mcmonkey4eva committed Oct 3, 2015
1 parent 74bc8e3 commit d2cec8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/aufdemrand/denizen/objects/dLocation.java
Expand Up @@ -1928,7 +1928,7 @@ && getBlock().getState() instanceof CreatureSpawner) {
// <l@location.base_color>
// -->
if (mechanism.matches("base_color")) {
Banner banner = (Banner) getBlock();
Banner banner = (Banner) getBlock().getState();
banner.setBaseColor(DyeColor.valueOf(mechanism.getValue().asString().toUpperCase()));
banner.update();
}
Expand Down Expand Up @@ -1959,7 +1959,7 @@ && getBlock().getState() instanceof CreatureSpawner) {
dB.echoError("Could not apply pattern to banner: " + string);
}
}
Banner banner = (Banner) getBlock();
Banner banner = (Banner) getBlock().getState();
banner.setPatterns(patterns);
banner.update();
}
Expand Down

0 comments on commit d2cec8e

Please sign in to comment.