Skip to content

Commit 4126979

Browse files
committed
Update to 1.21.8
1 parent 811ae70 commit 4126979

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

pom.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@
5555
<powermock.version>2.0.9</powermock.version>
5656
<!-- More visible way how to change dependency versions -->
5757
<spigot.version>1.21.7-R0.1-SNAPSHOT</spigot.version>
58-
<paper.version>1.21.7-R0.1-SNAPSHOT</paper.version>
58+
<paper.version>1.21.8-R0.1-SNAPSHOT</paper.version>
5959
<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.1.0</build.version>
65+
<build.version>3.2.0</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.7-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_8_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)