Skip to content

Commit af936c2

Browse files
authored
Merge pull request #106 from BentoBoxWorld/develop
2.8.2
2 parents 8a06f37 + 974375d commit af936c2

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

pom.xml

Lines changed: 9 additions & 3 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.4-R0.1-SNAPSHOT</spigot.version>
58-
<paper.version>1.21.3-R0.1-SNAPSHOT</paper.version>
57+
<spigot.version>1.21.5-R0.1-SNAPSHOT</spigot.version>
58+
<paper.version>1.21.5-R0.1-SNAPSHOT</paper.version>
5959
<bentobox.version>2.7.1-SNAPSHOT</bentobox.version>
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>2.8.1</build.version>
65+
<build.version>2.8.2</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.4-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_5_R0_1_SNAPSHOT;
2+
3+
import org.bukkit.Location;
4+
import org.bukkit.block.Block;
5+
import org.bukkit.craftbukkit.v1_21_R4.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+
}

src/main/resources/addon.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Boxed
22
main: world.bentobox.boxed.Boxed
33
version: ${version}${build.number}
4-
api-version: 2.7.1
4+
api-version: 3.3.3
55
metrics: true
66
icon: "COMPOSTER"
77
repository: "BentoBoxWorld/Boxed"

0 commit comments

Comments
 (0)