Skip to content

Commit

Permalink
fix head_rotation mech
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 15, 2018
1 parent 4980f51 commit a1fcae6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2413,7 +2413,9 @@ && getBlock().getState() instanceof CreatureSpawner) {
// <l@location.head_rotation>
// -->
if (mechanism.matches("head_rotation") && mechanism.requireInteger()) {
((Skull) getBlock().getState()).setRotation(getSkullBlockFace(value.asInt() - 1));
Skull sk = (Skull) getBlock().getState();
sk.setRotation(getSkullBlockFace(value.asInt() - 1));
sk.update();
}

// <--[mechanism]
Expand Down

0 comments on commit a1fcae6

Please sign in to comment.