-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from BentoBoxWorld/develop
Fixes for 1.21.3
- Loading branch information
Showing
7 changed files
with
58 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
src/main/java/world/bentobox/boxed/nms/v1_20_4_R0_1_SNAPSHOT/GetMetaData.java
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
src/main/java/world/bentobox/boxed/nms/v1_20_6_R0_1_SNAPSHOT/GetMetaData.java
This file was deleted.
Oops, something went wrong.
21 changes: 19 additions & 2 deletions
21
src/main/java/world/bentobox/boxed/nms/v1_21_3_R0_1_SNAPSHOT/GetMetaData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
package world.bentobox.boxed.nms.v1_21_3_R0_1_SNAPSHOT; | ||
|
||
public class GetMetaData extends world.bentobox.boxed.nms.v1_21_R0_1_SNAPSHOT.GetMetaData { | ||
// Identical to 1.21 | ||
import org.bukkit.Location; | ||
import org.bukkit.block.Block; | ||
import org.bukkit.craftbukkit.v1_21_R2.CraftWorld; | ||
|
||
import net.minecraft.core.BlockPosition; | ||
import net.minecraft.world.level.block.entity.TileEntity; | ||
import world.bentobox.boxed.nms.AbstractMetaData; | ||
|
||
public class GetMetaData extends AbstractMetaData { | ||
|
||
@Override | ||
public String nmsData(Block block) { | ||
Location w = block.getLocation(); | ||
CraftWorld cw = (CraftWorld) w.getWorld(); // CraftWorld is NMS one | ||
// for 1.13+ (we have use WorldServer) | ||
TileEntity te = cw.getHandle().c_(new BlockPosition(w.getBlockX(), w.getBlockY(), w.getBlockZ())); | ||
return getData(te, "getUpdatePacket", "tag"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters