Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-16 13:00:12 +01:00
Check if blank, not empty
Dieser Commit ist enthalten in:
Ursprung
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.LOCK, tag -> {
|
||||
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
|
||||
return null;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren