mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-25 03:25:11 +01:00
Check if blank, not empty
This commit is contained in:
parent
bc4ad7faa3
commit
2b840abfef
@ -565,7 +565,7 @@ public final class BlockItemPacketRewriter1_21_2 extends StructuredItemRewriter<
|
|||||||
dataContainer.replace(StructuredDataKey.FIRE_RESISTANT, StructuredDataKey.DAMAGE_RESISTANT, fireResistant -> new DamageResistant("minecraft:is_fire"));
|
dataContainer.replace(StructuredDataKey.FIRE_RESISTANT, StructuredDataKey.DAMAGE_RESISTANT, fireResistant -> new DamageResistant("minecraft:is_fire"));
|
||||||
dataContainer.replace(StructuredDataKey.LOCK, tag -> {
|
dataContainer.replace(StructuredDataKey.LOCK, tag -> {
|
||||||
final String lock = ((StringTag) tag).getValue();
|
final String lock = ((StringTag) tag).getValue();
|
||||||
if (lock.isEmpty()) {
|
if (lock.isBlank()) {
|
||||||
// Previously ignored empty values since the data was arbitrary, custom_name doesn't accept empty values
|
// Previously ignored empty values since the data was arbitrary, custom_name doesn't accept empty values
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user