Fully dropped 1.12 and lower support

This commit is contained in:
Stijn Bannink 2023-08-13 17:08:59 +02:00
parent 46c40bd2cc
commit f022ee907d
2 changed files with 4 additions and 7 deletions

View file

@ -23,7 +23,6 @@ import java.sql.SQLException;
import java.util.Collections; import java.util.Collections;
public class V10LiftPlugin extends JavaPlugin { public class V10LiftPlugin extends JavaPlugin {
@Getter @Getter
private static V10LiftPlugin instance; private static V10LiftPlugin instance;
private static YamlFile config; private static YamlFile config;

View file

@ -215,12 +215,10 @@ public class MoveLift implements Runnable {
state.setType(lib.getMat()); state.setType(lib.getMat());
state.update(true); state.update(true);
if (XMaterial.supports(13)) { BlockStateUtil.setDirection(nextBlock, lib.getFace());
BlockStateUtil.setDirection(nextBlock, lib.getFace()); BlockStateUtil.setBisected(nextBlock, lib.getBisected());
BlockStateUtil.setBisected(nextBlock, lib.getBisected()); BlockStateUtil.setSlabType(nextBlock, lib.getSlabType());
BlockStateUtil.setSlabType(nextBlock, lib.getSlabType()); BlockStateUtil.setOpen(nextBlock, lib.getOpen());
BlockStateUtil.setOpen(nextBlock, lib.getOpen());
}
if (direction == LiftDirection.UP) { //Teleportation is only required if we go up, for down gravity works fine. ;) if (direction == LiftDirection.UP) { //Teleportation is only required if we go up, for down gravity works fine. ;)
for (Entity ent : nextBlock.getChunk().getEntities()) { for (Entity ent : nextBlock.getChunk().getEntities()) {