Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprinklers don't work below y=0 #1516

Open
lorewalkercho opened this issue Oct 17, 2023 · 0 comments
Open

Sprinklers don't work below y=0 #1516

lorewalkercho opened this issue Oct 17, 2023 · 0 comments

Comments

@lorewalkercho
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant