Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public String text(@NotNull Biome entry, boolean colored, boolean prettyNbt) {

@Override
public void parse(InfoParserPackage info) {
if (info.getPos() == null || info.getEntity() == null) return;
instance.add(info.getMessages(), info.getEntity().getEntityWorld().getBiome(info.getPos()), info.isPrettyNbt());
var position = info.getEntity() == null ? info.getPos() : info.getEntity().getPosition();
if (position == null) return;
instance.add(info.getMessages(), info.getPlayer().getEntityWorld().getBiome(position), info.isPrettyNbt());
}
}