Skip to content

Commit

Permalink
fix(extensions/hologram): fix display entity missing billboard constr…
Browse files Browse the repository at this point in the history
…aints
  • Loading branch information
Misat11 committed Oct 3, 2023
1 parent 3bb16b4 commit e4c7090
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@

import lombok.Getter;
import org.jetbrains.annotations.NotNull;
import org.screamingsandals.lib.Server;
import org.screamingsandals.lib.packet.MetadataItem;
import org.screamingsandals.lib.world.Location;

@Getter
public class FakeDisplayEntity extends FakeEntity {
public FakeDisplayEntity(@NotNull Location location, int typeId) {
super(location, typeId);

put(MetadataItem.of((byte) (Server.isVersion(1, 20, 2) ? 15 : 14), (byte) 3)); // put to center
}
}

0 comments on commit e4c7090

Please sign in to comment.