From 75dbefb02a70087604bbb447807e2af2bde7a1b5 Mon Sep 17 00:00:00 2001 From: zhangyuheng Date: Mon, 22 Apr 2024 09:26:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E7=8E=A9=E5=AE=B6?= =?UTF-8?q?=E7=A6=BB=E7=BA=BF=E6=97=B6=E5=A6=82=E6=9E=9C=E5=9D=90=E5=9C=A8?= =?UTF-8?q?=E6=A4=85=E5=AD=90=E4=B8=8A=E4=B8=8B=E6=AC=A1=E4=B8=8A=E7=BA=BF?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E4=BC=9A=E8=A2=AB=E5=8D=A1=E5=9C=A8=E6=96=B9?= =?UTF-8?q?=E5=9D=97=E9=87=8C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/main/java/cn/lunadeer/essentialsd/ChairEvent.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index f157758..9043c12 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ cn.lunadeer EssentialsD - 1.17.1 + 1.17.2 jar EssentialsD diff --git a/src/main/java/cn/lunadeer/essentialsd/ChairEvent.java b/src/main/java/cn/lunadeer/essentialsd/ChairEvent.java index 744ee9b..ad277f9 100644 --- a/src/main/java/cn/lunadeer/essentialsd/ChairEvent.java +++ b/src/main/java/cn/lunadeer/essentialsd/ChairEvent.java @@ -122,8 +122,10 @@ public class ChairEvent implements Listener { } Entity vehicle = event.getPlayer().getVehicle(); // Let players stand up when leaving the server. - if (vehicle instanceof ArmorStand) + if (vehicle instanceof ArmorStand) { vehicle.remove(); + event.getPlayer().teleportAsync(event.getPlayer().getLocation().add(0, EssentialsD.config.getChairSitHeight() * -1, 0)); + } } private ArmorStand dropSeat(Block chair) {