From f022ee907dfc83ffdb16da691f22df4a3b79f8a5 Mon Sep 17 00:00:00 2001 From: Stijn Bannink Date: Sun, 13 Aug 2023 17:08:59 +0200 Subject: [PATCH] Fully dropped 1.12 and lower support --- .../java/tech/sbdevelopment/v10lift/V10LiftPlugin.java | 1 - .../sbdevelopment/v10lift/api/runnables/MoveLift.java | 10 ++++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/java/tech/sbdevelopment/v10lift/V10LiftPlugin.java b/src/main/java/tech/sbdevelopment/v10lift/V10LiftPlugin.java index 146ec0c..6e1132f 100644 --- a/src/main/java/tech/sbdevelopment/v10lift/V10LiftPlugin.java +++ b/src/main/java/tech/sbdevelopment/v10lift/V10LiftPlugin.java @@ -23,7 +23,6 @@ import java.sql.SQLException; import java.util.Collections; public class V10LiftPlugin extends JavaPlugin { - @Getter private static V10LiftPlugin instance; private static YamlFile config; diff --git a/src/main/java/tech/sbdevelopment/v10lift/api/runnables/MoveLift.java b/src/main/java/tech/sbdevelopment/v10lift/api/runnables/MoveLift.java index b31e14c..2f61a83 100644 --- a/src/main/java/tech/sbdevelopment/v10lift/api/runnables/MoveLift.java +++ b/src/main/java/tech/sbdevelopment/v10lift/api/runnables/MoveLift.java @@ -215,12 +215,10 @@ public class MoveLift implements Runnable { state.setType(lib.getMat()); state.update(true); - if (XMaterial.supports(13)) { - BlockStateUtil.setDirection(nextBlock, lib.getFace()); - BlockStateUtil.setBisected(nextBlock, lib.getBisected()); - BlockStateUtil.setSlabType(nextBlock, lib.getSlabType()); - BlockStateUtil.setOpen(nextBlock, lib.getOpen()); - } + BlockStateUtil.setDirection(nextBlock, lib.getFace()); + BlockStateUtil.setBisected(nextBlock, lib.getBisected()); + BlockStateUtil.setSlabType(nextBlock, lib.getSlabType()); + BlockStateUtil.setOpen(nextBlock, lib.getOpen()); if (direction == LiftDirection.UP) { //Teleportation is only required if we go up, for down gravity works fine. ;) for (Entity ent : nextBlock.getChunk().getEntities()) {