mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
upgrade: minor fixes, disable some scoreboard stuff temporarily
(cherry picked from commit db28c44b40
)
This commit is contained in:
parent
5de3436c71
commit
055b927bca
@ -348,6 +348,9 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
|||||||
refreshHealth(); // Heal and send health packet
|
refreshHealth(); // Heal and send health packet
|
||||||
refreshAbilities(); // Send abilities packet
|
refreshAbilities(); // Send abilities packet
|
||||||
|
|
||||||
|
// Start chunk load
|
||||||
|
sendPacket(new ChangeGameStatePacket(ChangeGameStatePacket.Reason.LEVEL_CHUNKS_LOAD_START, 0));
|
||||||
|
|
||||||
return setInstance(spawnInstance);
|
return setInstance(spawnInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ public record ChangeGameStatePacket(@NotNull Reason reason, float value) impleme
|
|||||||
PLAY_PUFFERFISH_STING_SOUND,
|
PLAY_PUFFERFISH_STING_SOUND,
|
||||||
PLAYER_ELDER_GUARDIAN_MOB_APPEARANCE,
|
PLAYER_ELDER_GUARDIAN_MOB_APPEARANCE,
|
||||||
ENABLE_RESPAWN_SCREEN,
|
ENABLE_RESPAWN_SCREEN,
|
||||||
LIMITED_CRAFTING
|
LIMITED_CRAFTING,
|
||||||
|
LEVEL_CHUNKS_LOAD_START
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,8 @@ public interface Scoreboard extends Viewable, PacketGroupingAudience {
|
|||||||
* @param score The new score
|
* @param score The new score
|
||||||
*/
|
*/
|
||||||
default void updateScore(Player player, int score) {
|
default void updateScore(Player player, int score) {
|
||||||
sendPacketsToViewers(new UpdateScorePacket(player.getUsername(), (byte) 0, getObjectiveName(), score));
|
//todo
|
||||||
|
// sendPacketsToViewers(new UpdateScorePacket(player.getUsername(), (byte) 0, getObjectiveName(), score));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -335,7 +335,9 @@ public class Sidebar implements Scoreboard {
|
|||||||
* @return a {@link UpdateScorePacket}
|
* @return a {@link UpdateScorePacket}
|
||||||
*/
|
*/
|
||||||
private UpdateScorePacket getScoreCreationPacket(String objectiveName) {
|
private UpdateScorePacket getScoreCreationPacket(String objectiveName) {
|
||||||
return new UpdateScorePacket(entityName, (byte) 0, objectiveName, line);
|
//todo
|
||||||
|
throw new UnsupportedOperationException();
|
||||||
|
// return new UpdateScorePacket(entityName, (byte) 0, objectiveName, line);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -345,7 +347,9 @@ public class Sidebar implements Scoreboard {
|
|||||||
* @return a {@link UpdateScorePacket}
|
* @return a {@link UpdateScorePacket}
|
||||||
*/
|
*/
|
||||||
private UpdateScorePacket getScoreDestructionPacket(String objectiveName) {
|
private UpdateScorePacket getScoreDestructionPacket(String objectiveName) {
|
||||||
return new UpdateScorePacket(entityName, (byte) 1, objectiveName, 0);
|
//todo
|
||||||
|
throw new UnsupportedOperationException();
|
||||||
|
// return new UpdateScorePacket(entityName, (byte) 1, objectiveName, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -356,7 +360,9 @@ public class Sidebar implements Scoreboard {
|
|||||||
* @return a {@link UpdateScorePacket}
|
* @return a {@link UpdateScorePacket}
|
||||||
*/
|
*/
|
||||||
private UpdateScorePacket getLineScoreUpdatePacket(String objectiveName, int score) {
|
private UpdateScorePacket getLineScoreUpdatePacket(String objectiveName, int score) {
|
||||||
return new UpdateScorePacket(entityName, (byte) 0, objectiveName, score);
|
//todo
|
||||||
|
throw new UnsupportedOperationException();
|
||||||
|
// return new UpdateScorePacket(entityName, (byte) 0, objectiveName, score);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user