Skip to content

Commit 1daa902

Browse files
authored
Merge pull request #112 from BentoBoxWorld/develop
Release 3.0.1
2 parents 453298a + fbc0528 commit 1daa902

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

pom.xml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@
5454
<!-- Non-minecraft related dependencies -->
5555
<powermock.version>2.0.9</powermock.version>
5656
<!-- More visible way how to change dependency versions -->
57-
<spigot.version>1.21.6-R0.1-SNAPSHOT</spigot.version>
58-
<paper.version>1.21.6-R0.1-SNAPSHOT</paper.version>
59-
<bentobox.version>3.5.0</bentobox.version>
57+
<spigot.version>1.21.7-R0.1-SNAPSHOT</spigot.version>
58+
<paper.version>1.21.7-R0.1-SNAPSHOT</paper.version>
59+
<bentobox.version>3.3.0</bentobox.version> <!-- Errors with later versions regarding kyori-->
6060
<!-- Revision variable removes warning about dynamic version -->
6161
<revision>${build.version}-SNAPSHOT</revision>
6262
<!-- Do not change unless you want different name for local builds. -->
6363
<build.number>-LOCAL</build.number>
6464
<!-- This allows to change between versions. -->
65-
<build.version>3.0.0</build.version>
65+
<build.version>3.0.1</build.version>
6666

6767
<sonar.projectKey>BentoBoxWorld_Boxed</sonar.projectKey>
6868
<sonar.organization>bentobox-world</sonar.organization>
@@ -183,6 +183,12 @@
183183
<version>${spigot.version}</version>
184184
<scope>provided</scope>
185185
</dependency>
186+
<dependency>
187+
<groupId>org.spigotmc.....</groupId>
188+
<artifactId>spigot</artifactId>
189+
<version>1.21.6-R0.1-SNAPSHOT</version>
190+
<scope>provided</scope>
191+
</dependency>
186192
<dependency>
187193
<groupId>org.spigotmc....</groupId>
188194
<artifactId>spigot</artifactId>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package world.bentobox.boxed.nms.v1_21_7_R0_1_SNAPSHOT;
2+
3+
import org.bukkit.Location;
4+
import org.bukkit.block.Block;
5+
import org.bukkit.craftbukkit.v1_21_R5.CraftWorld;
6+
7+
import net.minecraft.core.BlockPosition;
8+
import net.minecraft.world.level.block.entity.TileEntity;
9+
import world.bentobox.boxed.nms.AbstractMetaData;
10+
11+
public class GetMetaData extends AbstractMetaData {
12+
13+
@Override
14+
public String nmsData(Block block) {
15+
Location w = block.getLocation();
16+
CraftWorld cw = (CraftWorld) w.getWorld(); // CraftWorld is NMS one
17+
// for 1.13+ (we have use WorldServer)
18+
TileEntity te = cw.getHandle().c_(new BlockPosition(w.getBlockX(), w.getBlockY(), w.getBlockZ()));
19+
return getData(te, "getUpdatePacket", "tag");
20+
}
21+
22+
}

0 commit comments

Comments
 (0)