fix: try fix #70
This commit is contained in:
+4
-5
@@ -245,17 +245,16 @@ public class ServuxHudDataProtocol implements LeavesProtocol {
|
|||||||
if (!isLoggerTypeEnabled(type)) {
|
if (!isLoggerTypeEnabled(type)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (ServerPlayer player : players) {
|
players.forEach(player -> {
|
||||||
Tag ret = logger.getResult(server, this, player);
|
Tag ret = logger.getResult(server, this, player);
|
||||||
if (ret != null) {
|
if (ret != null) {
|
||||||
DATA.put(type, player, ret);
|
DATA.put(type, player, ret);
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
for (ServerPlayer player : loggerPlayers.keySet()) {
|
loggerPlayers.forEach((player, list) -> {
|
||||||
List<DataLogger.Type> list = loggerPlayers.get(player);
|
|
||||||
if (list.isEmpty()) {
|
if (list.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -269,7 +268,7 @@ public class ServuxHudDataProtocol implements LeavesProtocol {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
sendPacket(player, new HudDataPayload(HudDataPayloadType.PACKET_S2C_DATA_LOGGER_TICK, nbt));
|
sendPacket(player, new HudDataPayload(HudDataPayloadType.PACKET_S2C_DATA_LOGGER_TICK, nbt));
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void applyData(DataLogger.Type type, ServerPlayer player, Tag tag) {
|
public void applyData(DataLogger.Type type, ServerPlayer player, Tag tag) {
|
||||||
|
|||||||
Reference in New Issue
Block a user