Fixed /iris what biome not working.

This commit is contained in:
Vatuu 2022-08-23 15:51:04 +02:00
parent dbc425dce6
commit 4edcb54b31
No known key found for this signature in database
GPG Key ID: C6F07B79B2ED9150

View File

@ -65,7 +65,7 @@ public class CommandWhat implements DecreeExecutor {
@Decree(description = "What biome am i in?", origin = DecreeOrigin.PLAYER) @Decree(description = "What biome am i in?", origin = DecreeOrigin.PLAYER)
public void biome() { public void biome() {
try { try {
IrisBiome b = engine().getBiome(player().getLocation().getBlockX(), player().getLocation().getBlockY(), player().getLocation().getBlockZ()); IrisBiome b = engine().getBiome(player().getLocation().getBlockX(), player().getLocation().getBlockY() - player().getWorld().getMinHeight(), player().getLocation().getBlockZ());
sender().sendMessage("IBiome: " + b.getLoadKey() + " (" + b.getDerivative().name() + ")"); sender().sendMessage("IBiome: " + b.getLoadKey() + " (" + b.getDerivative().name() + ")");
} catch(Throwable e) { } catch(Throwable e) {