From a3c1efeaae98169bbcd8d98c1576f1780c340588 Mon Sep 17 00:00:00 2001
From: BiliGoldenWater <2439577268@qq.com>
Date: Wed, 29 Jul 2020 22:43:28 +0800
Subject: [PATCH] update to v1.1.1-beta
---
pom.xml | 2 +-
.../biligoldenwater/midiplayer/PlayMidi.java | 16 ++++++++--------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/pom.xml b/pom.xml
index fca8c44..f54d694 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
io.github.biligoldenwater
MidiPlayer
- v1.1-beta
+ v1.1.1-beta
jar
MidiPlayer
diff --git a/src/main/java/io/github/biligoldenwater/midiplayer/PlayMidi.java b/src/main/java/io/github/biligoldenwater/midiplayer/PlayMidi.java
index 79a93e2..da4518a 100644
--- a/src/main/java/io/github/biligoldenwater/midiplayer/PlayMidi.java
+++ b/src/main/java/io/github/biligoldenwater/midiplayer/PlayMidi.java
@@ -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();