mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-15 20:51:34 +01:00
Fix infinite recursion with Instance#getBlockStateId
This commit is contained in:
parent
0da4f96e7e
commit
a9e638b93f
@ -632,7 +632,7 @@ public abstract class Instance implements BlockModifier, EventHandler, DataConta
|
||||
* @return the block state id at the position
|
||||
*/
|
||||
public short getBlockStateId(double x, double y, double z) {
|
||||
return getBlockStateId(Math.round(x), Math.round(y), Math.round(z));
|
||||
return getBlockStateId((int) Math.round(x), (int) Math.round(y), (int) Math.round(z));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user