Skip to content

Commit

Permalink
Version 4.9.1 : 1.20 support
Browse files Browse the repository at this point in the history
  • Loading branch information
XSoussou committed Aug 28, 2023
1 parent 15dfc58 commit dd19271
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<artifactId>graves</artifactId>
<name>Graves</name>
<description>Full featured lightweight death chest plugin.</description>
<version>4.9</version>
<version>4.9.1</version>

<developers>
<developer>
Expand All @@ -29,7 +29,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.11.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
Expand All @@ -38,7 +38,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.3.1-SNAPSHOT</version>
<version>3.5.0</version>
<configuration>
<relocations>
<relocation>
Expand Down Expand Up @@ -75,7 +75,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<version>3.3.1</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<nonFilteredFileExtensions>
Expand Down Expand Up @@ -163,19 +163,19 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.19-R0.1-SNAPSHOT</version>
<version>1.20-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.0</version>
<version>3.0.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.github.puregero</groupId>
<artifactId>multilib</artifactId>
<version>1.1.5</version>
<version>1.1.12</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -223,13 +223,13 @@
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-bukkit</artifactId>
<version>7.2.0-SNAPSHOT</version>
<version>7.2.15</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sk89q.worldguard</groupId>
<artifactId>worldguard-bukkit</artifactId>
<version>7.0.7-SNAPSHOT</version>
<version>7.0.9</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -271,7 +271,7 @@
<dependency>
<groupId>com.github.Ste3et</groupId>
<artifactId>FurnitureLib</artifactId>
<version>22fb4086de</version>
<version>3.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -295,13 +295,13 @@
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-text-minimessage</artifactId>
<version>4.11.0</version>
<version>4.14.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-platform-bukkit</artifactId>
<version>4.1.1</version>
<version>4.3.0</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -313,7 +313,7 @@
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>23.0.0</version>
<version>24.0.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/ranull/graves/integration/FurnitureLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import de.Ste3et_C0st.FurnitureLib.Utilitis.LocationUtil;
import de.Ste3et_C0st.FurnitureLib.main.FurniturePlugin;
import de.Ste3et_C0st.FurnitureLib.main.ObjectID;
import de.Ste3et_C0st.FurnitureLib.main.entity.fEntity;
import de.Ste3et_C0st.FurnitureLib.main.entity.fContainerEntity;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
Expand Down Expand Up @@ -89,7 +89,7 @@ public void createFurniture(Location location, Grave grave) {

if (plugin.getConfig("furniturelib.head.replace", grave)
.getBoolean("furniturelib.head.replace")) {
objectID.getPacketList().forEach((fEntity) -> setSkull(fEntity, grave));
objectID.getPacketList().forEach((fEntity) -> setSkull((fContainerEntity) fEntity, grave));
}

furnitureLib.getFurnitureManager().addObjectID(objectID);
Expand Down Expand Up @@ -142,7 +142,7 @@ private void setSign(Block block, List<String> stringList, Grave grave) {
}
}

private void setSkull(fEntity fEntity, Grave grave) {
private void setSkull(fContainerEntity fEntity, Grave grave) {
List<String> materialList = plugin.getConfig("furniturelib.head.material", grave)
.getStringList("furniturelib.head.material");
ItemStack itemStack = plugin.getCompatibility().getSkullItemStack(grave, plugin);
Expand Down

0 comments on commit dd19271

Please sign in to comment.