Compile against WorldEdit 7.3.0; fix compile

This commit is contained in:
Brokkonaut
2024-03-10 06:16:25 +01:00
parent 54f9855a1f
commit 43c9fd01a8
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-bukkit</artifactId>
<version>7.2.9-SNAPSHOT</version>
<version>7.3.0</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -139,7 +139,7 @@ public class WorldEditHelper {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
NBTOutputStream nbtos = new NBTOutputStream(baos);
CompoundTag nbt = state.getNbtData();
LinkedHashMap<String, Tag> value = new LinkedHashMap<>(nbt.getValue());
LinkedHashMap<String, Tag<?, ?>> value = new LinkedHashMap<>(nbt.getValue());
value.put("Health", new FloatTag(20.0f));
value.put("Motion", new ListTag(DoubleTag.class, Arrays.asList(new DoubleTag[] { new DoubleTag(0), new DoubleTag(0), new DoubleTag(0) })));
value.put("Fire", new ShortTag((short) -20));