This commit is contained in:
gnembon committed 2021-03-17 10:42:31 -03:00
1 parent 5276061f04
commit 0b93101248
4 files changed
+7 -7

No files matched your search

@@ -594,12 +594,12 @@ public class Scoreboards {
return LazyValue.FALSE;
case "style":
if(propertyValue == null) {
return (_c, _t) -> StringValue.of(bossBar.getOverlay().getName());
return (_c, _t) -> StringValue.of(bossBar.getStyle().getName());
}
BossBar.Style style = BossBar.Style.byName(propertyValue.getString());
if(style == null) throw new InternalExpressionException("'" + propertyValue.getString() + "' is not a valid value for property " + property);
bossBar.setOverlay(style);
bossBar.setStyle(style);
return LazyValue.TRUE;
case "value":
if(propertyValue == null) return (_c, _t) -> NumericValue.of(bossBar.getValue());