Skip to content

Commit

Permalink
update to v1.1.1-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
BillGoldenWater committed Jul 29, 2020
1 parent 12487d9 commit a3c1efe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.biligoldenwater</groupId>
<artifactId>MidiPlayer</artifactId>
<version>v1.1-beta</version>
<version>v1.1.1-beta</version>
<packaging>jar</packaging>

<name>MidiPlayer</name>
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/io/github/biligoldenwater/midiplayer/PlayMidi.java
Original file line number Diff line number Diff line change
Expand Up @@ -230,20 +230,20 @@ public void initMidi(JavaPlugin plugin, Player player, File midiFile, boolean us
float yaw = location.getYaw();

if (yaw > -45 && yaw < 45) {
x = location.getX() + (65);
z = location.getZ() + (25);
x = location.getBlockX() + (65);
z = location.getBlockZ() + (25);
this.yaw = 0; // x-
} else if (yaw > 90 - 45 && yaw < 90 + 45) {
x = location.getX() + (-25);
z = location.getZ() + (65);
x = location.getBlockX() + (-25);
z = location.getBlockZ() + (65);
this.yaw = 1; // z-
} else if (yaw > -90 - 45 && yaw < -90 + 45) {
x = location.getX() + (25);
z = location.getZ() + (-65);
x = location.getBlockX() + (25);
z = location.getBlockZ() + (-65);
this.yaw = 3; // z+
} else {
x = location.getX() + (-65);
z = location.getZ() + (-25);
x = location.getBlockX() + (-65);
z = location.getBlockZ() + (-25);
this.yaw = 2; // x+
}
y = location.getY();
Expand Down

0 comments on commit a3c1efe

Please sign in to comment.