Skip to content

Commit

Permalink
no paperweight
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSchlueter committed Aug 3, 2024
1 parent b3bdc47 commit ad92272
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 1 addition & 5 deletions implementation_1_20_6/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
plugins {
id("java-library")
id("io.papermc.paperweight.userdev") version "1.7.1"
}


val minecraftVersion = "1.20.6"

paperweight.reobfArtifactConfiguration = io.papermc.paperweight.userdev.ReobfArtifactConfiguration.MOJANG_PRODUCTION


dependencies {
paperweight.paperDevBundle("$minecraftVersion-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:$minecraftVersion-R0.1-SNAPSHOT")

compileOnly(project(":api"))
compileOnly("de.oliver:FancyLib:${findProperty("fancyLibVersion")}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import de.oliver.fancysitula.api.entities.FS_RealPlayer;
import de.oliver.fancysitula.api.entities.FS_TextDisplay;
import de.oliver.fancysitula.factories.FancySitula;
import net.minecraft.util.Brightness;
import net.minecraft.world.entity.Display.TextDisplay;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
Expand Down Expand Up @@ -77,7 +75,7 @@ public void update() {
// background
final var background = textData.getBackground();
if (background == null) {
textDisplay.setBackground(TextDisplay.INITIAL_BACKGROUND);
textDisplay.setBackground(1073741824); // default background
} else if (background == Hologram.TRANSPARENT) {
textDisplay.setBackground(0);
} else {
Expand Down Expand Up @@ -112,8 +110,7 @@ public void update() {

// brightness
if (displayData.getBrightness() != null) {
Brightness brightness = new Brightness(displayData.getBrightness().getBlockLight(), displayData.getBrightness().getSkyLight());
fsDisplay.setBrightnessOverride(brightness.pack());
fsDisplay.setBrightnessOverride(displayData.getBrightness().getBlockLight() << 4 | displayData.getBrightness().getSkyLight() << 20);
}

// entity transformation
Expand Down

0 comments on commit ad92272

Please sign in to comment.