Sprinklers don't work below y=0
lorewalkercho opened this issue ยท 0 comments
Quick description
Sprinklers do not irrigate farmland below y=0. This might be because of the following line of code in TileEntitySprinkler.java:
final int stopY = Math.max(this.getBlockPos().getY() - WORK_HEIGHT, 0); // Avoid the void.
This appears to prevent sprinklers from affecting any block below y=0, presumably because of errors occuring when attempting to interact with blocks in the void. Now that the lowest valid y-level is -64, the minimum y can probably be adjusted downwards to allow sprinklers to be used in superflat and deep underground farms.
Mods and versions used
- Minecraft: 1.18.2
- AgriCraft: 3.1.6
- InfinityLib: 2.1.4