Skip to content

Commit 2b840ab

Browse files
FlorianMichaelkennytv
authored andcommitted
Check if blank, not empty
1 parent bc4ad7f commit 2b840ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/com/viaversion/viaversion/protocols/v1_21to1_21_2/rewriter/BlockItemPacketRewriter1_21_2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ public static void updateItemData(final Item item) {
565565
dataContainer.replace(StructuredDataKey.FIRE_RESISTANT, StructuredDataKey.DAMAGE_RESISTANT, fireResistant -> new DamageResistant("minecraft:is_fire"));
566566
dataContainer.replace(StructuredDataKey.LOCK, tag -> {
567567
final String lock = ((StringTag) tag).getValue();
568-
if (lock.isEmpty()) {
568+
if (lock.isBlank()) {
569569
// Previously ignored empty values since the data was arbitrary, custom_name doesn't accept empty values
570570
return null;
571571
}

0 commit comments

Comments
 (0)