fix set score kick

This commit is contained in:
Blast-MC
2025-01-02 11:20:45 -05:00
parent c46dbce254
commit aec635cdbf

View File

@@ -184,7 +184,7 @@ index 0000000000000000000000000000000000000000..3184478d24e6c984d4e5b5f67253f966
+ }
+
+ java.util.Optional<NumberFormat> numberFormat = java.util.Optional.of((display == null || display.isEmpty() || display.isBlank()) ? BlankFormat.INSTANCE : new FixedFormat(Component.literal(StringUtils.colorize(display))));
+ ClientboundSetScorePacket packet = new ClientboundSetScorePacket(id + value, this.name, line, null, numberFormat);
+ ClientboundSetScorePacket packet = new ClientboundSetScorePacket(id + value, this.name, line, Optional.empty(), numberFormat);
+
+ this.connection.send(packet);
+ }