Fix infinite recursion with Instance#getBlockStateId

This commit is contained in:
themode 2021-01-25 21:58:06 +01:00
parent 0da4f96e7e
commit a9e638b93f

View File

@ -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));
}
/**