Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 16:12:42 +01:00
Make bossbar patch a configurable option
Dieser Commit ist enthalten in:
Ursprung
1bf1e8981c
Commit
83518b92fe
@ -236,6 +236,10 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaVersionAPI {
|
|||||||
return getConfig().getBoolean("hologram-patch", false);
|
return getConfig().getBoolean("hologram-patch", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isBossbarPatch() {
|
||||||
|
return getConfig().getBoolean("bossbar-patch", true);
|
||||||
|
}
|
||||||
|
|
||||||
public double getHologramYOffset() {
|
public double getHologramYOffset() {
|
||||||
return getConfig().getDouble("hologram-y", -1D);
|
return getConfig().getDouble("hologram-y", -1D);
|
||||||
}
|
}
|
||||||
|
@ -896,8 +896,8 @@ public class OutgoingTransformer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Add config option
|
|
||||||
// Boss bar
|
// Boss bar
|
||||||
|
if(plugin.isBossbarPatch()) {
|
||||||
if (type == EntityType.ENDER_DRAGON || type == EntityType.WITHER) {
|
if (type == EntityType.ENDER_DRAGON || type == EntityType.WITHER) {
|
||||||
if (entry.getOldID() == 2) {
|
if (entry.getOldID() == 2) {
|
||||||
BossBar bar = bossBarMap.get(entityID);
|
BossBar bar = bossBarMap.get(entityID);
|
||||||
@ -929,6 +929,7 @@ public class OutgoingTransformer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private UUID getUUID(int id) {
|
private UUID getUUID(int id) {
|
||||||
|
@ -19,3 +19,5 @@ hologram-patch: false
|
|||||||
hologram-y: -1
|
hologram-y: -1
|
||||||
# Enable player tick simulation, this fixes eating, drinking, nether portals.
|
# Enable player tick simulation, this fixes eating, drinking, nether portals.
|
||||||
simulate-pt: true
|
simulate-pt: true
|
||||||
|
# Should we patch boss bars so they work? (Default: true, disable if you're having issues)
|
||||||
|
bossbar-patch: true
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren