Skip to content

Commit

Permalink
V1.16 now uses "SkullOwner" instead of "Owner" for a BlockEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
bundabrg committed Jul 2, 2020
1 parent 64be229 commit 318e23c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public CompoundTag getDefaultBedrockTag(String bedrockId, int x, int y, int z) {
}

public static GameProfile getProfile(com.github.steveice10.opennbt.tag.builtin.CompoundTag tag, GeyserSession session) {
if (tag.contains("Owner")) {
com.github.steveice10.opennbt.tag.builtin.CompoundTag owner = tag.get("Owner");
if (tag.contains("SkullOwner")) {
com.github.steveice10.opennbt.tag.builtin.CompoundTag owner = tag.get("SkullOwner");
com.github.steveice10.opennbt.tag.builtin.CompoundTag Properties = owner.get("Properties");

ListTag textures = Properties.get("textures");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ public static ChunkData translateToBedrock(Column column, GeyserSession session)
bedrockBlockEntities[i] = blockEntityTranslator.getBlockEntityTag(tagName, tag, blockState);

//Check for custom skulls
if (tag.contains("Owner") && SkullBlockEntityTranslator.ALLOW_CUSTOM_SKULLS) {
CompoundTag owner = tag.get("Owner");
if (tag.contains("SkullOwner") && SkullBlockEntityTranslator.ALLOW_CUSTOM_SKULLS) {
CompoundTag owner = tag.get("SkullOwner");
if (owner.contains("Properties")) {
SkullBlockEntityTranslator.spawnPlayer(session, tag, blockState);
}
Expand Down

0 comments on commit 318e23c

Please sign in to comment.