Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 16:12:42 +01:00
Make it possible to use the new effect indicators in 1.9
Dieser Commit ist enthalten in:
Ursprung
722f28f086
Commit
6a7bd209a3
@ -239,6 +239,10 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaVersionAPI {
|
||||
return getConfig().getBoolean("prevent-collision", true);
|
||||
}
|
||||
|
||||
public boolean isNewEffectIndicator(){
|
||||
return getConfig().getBoolean("use-new-effect-indicator",true);
|
||||
}
|
||||
|
||||
public boolean isSuppressMetadataErrors() {
|
||||
return getConfig().getBoolean("suppress-metadata-errors", false);
|
||||
}
|
||||
|
@ -679,7 +679,7 @@ public class OutgoingTransformer {
|
||||
PacketUtil.writeVarInt(duration, output);
|
||||
// we need to write as a byte instead of boolean
|
||||
boolean hideParticles = input.readBoolean();
|
||||
output.writeByte(hideParticles ? 1 : 0);
|
||||
output.writeByte(hideParticles ? plugin.isNewEffectIndicator() ? 2 : 1 : 0);
|
||||
return;
|
||||
}
|
||||
if (packet == PacketType.PLAY_TEAM) {
|
||||
|
@ -19,4 +19,6 @@ simulate-pt: true
|
||||
# Should we patch boss bars so they work? (Default: true, disable if you're having issues)
|
||||
bossbar-patch: true
|
||||
# If your boss bar flickers on 1.9, set this to 'true'. It will keep all boss bars on 100% (not recommended)
|
||||
bossbar-anti-flicker: false
|
||||
bossbar-anti-flicker: false
|
||||
# This will show the new effect indicator in the top-right corner for 1.9 players.
|
||||
use-new-effect-indicator: true
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren