From 5e3db74dd34057c462244d5e8cd8fda7c1ddf507 Mon Sep 17 00:00:00 2001 From: BONNe Date: Wed, 11 Oct 2023 12:40:15 +0300 Subject: [PATCH] Add Minecraft 1.20.2 compatibility. --- pom.xml | 12 +++++++++--- .../id/bonne/dragonfights/DragonFightsPladdon.java | 4 ++-- .../dragonfights/entity/BentoBoxEnderDragonRoot.java | 1 + .../bonne/dragonfights/entity/CustomEntityAPI.java | 1 + 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index e3a9675..7e46e89 100644 --- a/pom.xml +++ b/pom.xml @@ -20,13 +20,13 @@ 17 1.7.4 - 1.20-R0.1-SNAPSHOT + 1.20.2-R0.1-SNAPSHOT 1.23.0 2.5.0 ${build.version}-SNAPSHOT - 1.7.0 + 1.8.0 -LOCAL @@ -170,7 +170,7 @@ io.github.iltotore customentity - 1.6.0 + 1.7.0 compile @@ -197,6 +197,12 @@ 1.6.0 compile + + lv.id.bonne + dragonfights-v1_20_r2 + 1.7.0 + compile + diff --git a/src/main/java/lv/id/bonne/dragonfights/DragonFightsPladdon.java b/src/main/java/lv/id/bonne/dragonfights/DragonFightsPladdon.java index d526098..595b5ed 100644 --- a/src/main/java/lv/id/bonne/dragonfights/DragonFightsPladdon.java +++ b/src/main/java/lv/id/bonne/dragonfights/DragonFightsPladdon.java @@ -17,8 +17,8 @@ /** * @author bonne */ -@Plugin(name="DragonFights", version="1.6.0") -@ApiVersion(ApiVersion.Target.v1_18) +@Plugin(name="DragonFights", version="1.7.0") +@ApiVersion(ApiVersion.Target.v1_19) public class DragonFightsPladdon extends Pladdon { @Override diff --git a/src/main/java/lv/id/bonne/dragonfights/entity/BentoBoxEnderDragonRoot.java b/src/main/java/lv/id/bonne/dragonfights/entity/BentoBoxEnderDragonRoot.java index 84ff600..c9e21fc 100644 --- a/src/main/java/lv/id/bonne/dragonfights/entity/BentoBoxEnderDragonRoot.java +++ b/src/main/java/lv/id/bonne/dragonfights/entity/BentoBoxEnderDragonRoot.java @@ -93,6 +93,7 @@ public Collection getSpawns(ServerVersion version) this.setVersion(ServerVersion.v1_19_2, lv.id.bonne.dragonfights.v1_19_R2.entity.BentoBoxEnderDragonType::new); this.setVersion(ServerVersion.v1_19_3, lv.id.bonne.dragonfights.v1_19_R3.entity.BentoBoxEnderDragonType::new); this.setVersion(ServerVersion.v1_20, lv.id.bonne.dragonfights.v1_20_R1.entity.BentoBoxEnderDragonType::new); + this.setVersion(ServerVersion.v1_20_2, lv.id.bonne.dragonfights.v1_20_R2.entity.BentoBoxEnderDragonType::new); } } diff --git a/src/main/java/lv/id/bonne/dragonfights/entity/CustomEntityAPI.java b/src/main/java/lv/id/bonne/dragonfights/entity/CustomEntityAPI.java index 607c5c1..f3667b8 100644 --- a/src/main/java/lv/id/bonne/dragonfights/entity/CustomEntityAPI.java +++ b/src/main/java/lv/id/bonne/dragonfights/entity/CustomEntityAPI.java @@ -57,5 +57,6 @@ public static NMSHandler getAPI() versions.put(ServerVersion.v1_19_2, lv.id.bonne.dragonfights.v1_19_R2.NMSHandler::new); versions.put(ServerVersion.v1_19_3, lv.id.bonne.dragonfights.v1_19_R3.NMSHandler::new); versions.put(ServerVersion.v1_20, lv.id.bonne.dragonfights.v1_20_R1.NMSHandler::new); + versions.put(ServerVersion.v1_20_2, lv.id.bonne.dragonfights.v1_20_R2.NMSHandler::new); } } \ No newline at end of file