Skip to content

Commit

Permalink
fix rotate_around_z
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Nov 13, 2019
1 parent bda74b4 commit 6afc50b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -423,11 +423,11 @@ public boolean matches(ScriptPath path) {
//
// The most common example of this is editing a player's inventory, within an inventory-related event.
// Generally speaking, this problem becomes relevant any time an edit is made to something involved with an event,
// within the firing of an example.
// within the firing of that event.
// Take the following examples:
// <code>
// on player clicks in inventory:
// - take <player.item_in_hand>
// - take iteminhand
// on entity damaged:
// - remove <context.entity>
// </code>
Expand All @@ -447,7 +447,7 @@ public boolean matches(ScriptPath path) {
// <code>
// on player clicks in inventory:
// - wait 1t
// - take <player.item_in_hand>
// - take iteminhand
// on entity damaged:
// - wait 1t
// - if <context.entity.is_spawned||false>:
Expand Down
Expand Up @@ -1734,7 +1734,7 @@ else if (yaw < 315) {
double cos = Math.cos(angle);
double sin = Math.sin(angle);
double x = (object.getX() * cos) - (object.getY() * sin);
double y = (object.getZ() * sin) + (object.getY() * cos);
double y = (object.getX() * sin) + (object.getY() * cos);
Location location = object.clone();
location.setX(x);
location.setY(y);
Expand Down

0 comments on commit 6afc50b

Please sign in to comment.