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

Depositall doesn't work below height y -13 #50

Closed
TheoRetisch1 opened this issue Sep 14, 2022 · 6 comments
Closed

Depositall doesn't work below height y -13 #50

TheoRetisch1 opened this issue Sep 14, 2022 · 6 comments

Comments

@TheoRetisch1
Copy link

If you execute depositall for chests below height y -13, an internal error occurs and the items are not sorted. In chests above y -13 all items are sorted without problems.

AutomaticInventory - 2.12.3-5e759dd
Paper 1.19.2 - 141

@TheoRetisch1
Copy link
Author

Do you see a possibility to fix the problem?

@Momshroom
Copy link

I'm having the same issue:
Here's the console error:
https://pastebin.com/qpwU4eyW

Additional note: a chest at y=-5 and y = -13 fails to receive deposits, but does not cause the console errors. Chests at y=-17 cause the error and also do not deposit. chests higher up work fine. I have not pinpointed the exact locations where it errors.

@Momshroom
Copy link

Forgot to say, running:
Paper version git-Paper-265 (MC: 1.19.2)
AutomaticInventory version 2.12.2-3a60582

@Momshroom
Copy link

line 243 of the AutomaticInventory.java file:
int minY = Math.max(0, player.getEyeLocation().getBlockY() - 10);
is likely a large part of the problem:
should be:
int minY = Math.max(world.getMinHeight(), player.getEyeLocation().getBlockY() - 10);

I can try testing this and PRing a fix, but probably not before Dec 9th.

@Momshroom
Copy link

Line 45 in FindChestsThread.java will still need adjusting for the fact that negative y coords can still lead to a negative value there in the array declaration.

@TheoRetisch1
Copy link
Author

I would love to see a pull request @Momshroom 👍

kikelkik pushed a commit to kikelkik/AutomaticInventory that referenced this issue Feb 5, 2023
kikelkik pushed a commit to kikelkik/AutomaticInventory that referenced this issue Feb 5, 2023
kikelkik pushed a commit to kikelkik/AutomaticInventory that referenced this issue Feb 5, 2023
RoboMWM pushed a commit that referenced this issue Mar 3, 2023
@RoboMWM RoboMWM closed this as completed Mar 13, 2023
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

3 participants