Skip to content

Commit

Permalink
add sign processor to hanging signs
Browse files Browse the repository at this point in the history
  • Loading branch information
TropheusJ committed Aug 5, 2023
1 parent d4da77d commit 46c8fa4
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static synchronized void addSurvivalProcessor(BlockEntityType<?> type,

static {
String[] signSides = new String[] { "front_text", "back_text" };
addProcessor(BlockEntityType.SIGN, data -> {
UnaryOperator<CompoundTag> signProcessor = data -> {
for (String side : signSides) {
if (data.contains(side, Tag.TAG_COMPOUND)) {
CompoundTag sideData = data.getCompound(side);
Expand All @@ -51,7 +51,10 @@ public static synchronized void addSurvivalProcessor(BlockEntityType<?> type,
}
}
return data;
});
};
addProcessor(BlockEntityType.SIGN, signProcessor);
addProcessor(BlockEntityType.HANGING_SIGN, signProcessor);

addProcessor(BlockEntityType.LECTERN, data -> {
if (!data.contains("Book", Tag.TAG_COMPOUND))
return data;
Expand Down

0 comments on commit 46c8fa4

Please sign in to comment.