Skip to content

Commit

Permalink
Adicionado opção setDownOrigin em holograma
Browse files Browse the repository at this point in the history
  • Loading branch information
SrBedrock committed Sep 21, 2024
1 parent d474df4 commit d521242
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,10 @@ public class DecentHologramsSupport extends HologramManager {
@Override
public void createHologram(Block block, @NotNull Crate crate) {
CrateHologram crateHologram = crate.getHologram();
if (!crateHologram.isEnabled()) return;

if (!crateHologram.isEnabled()) {
return;
}

double height = crateHologram.getHeight();

Hologram hologram = DHAPI.createHologram("CrazyCrates-" + UUID.randomUUID(), block.getLocation().add(.5, height, .5));
Hologram hologram = DHAPI.createHologram("CrazyCrates-" + UUID.randomUUID(), block.getLocation().add(.5, crateHologram.getHeight(), .5));
hologram.setDownOrigin(true);

hologram.setDisplayRange(crateHologram.getRange());

Expand Down

0 comments on commit d521242

Please sign in to comment.