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

CalculatePageAmount #30

Open
drolpi opened this issue Apr 23, 2021 · 8 comments
Open

CalculatePageAmount #30

drolpi opened this issue Apr 23, 2021 · 8 comments

Comments

@drolpi
Copy link

drolpi commented Apr 23, 2021

Used Version

LATEST

What is happening?

I use the Inventory System to create an inventory with several pages. I use a GroupElement and there I add staticitems. However, 2 pages exist although the slots of the group are not full. In addition, the second page is equipped with the same items as page 1. If I make the slots of one page full and a few on the second page, it works with the pages. This means that the calculatePageAmount method does not work.

Additional context

Page 1: https://prnt.sc/11x6lr7
Page 2: https://prnt.sc/11x6m64

@Phoenix616
Copy link
Owner

  1. "latest" is not a version, please provide the exact version or even build that you are using.
  2. Please provide some code example.

@drolpi
Copy link
Author

drolpi commented Apr 23, 2021

Here ist the code. https://hatebin.com/pwmzwzysgo
And i use the code from the master branch

@Phoenix616
Copy link
Owner

Hm, you are nesting dynamic elements inside of o dynamic element, that might be what is causing that behaviour. Such a setup is not necessary as the outermost dynamic element will already re-generate the full inner element so can you test removing the innermost dynamic element and see if that already solves it?

@drolpi
Copy link
Author

drolpi commented Apr 23, 2021

No, unfortunately that does not solve the problem
Here is my new code: https://hatebin.com/qqkjmpjnjd

@drolpi
Copy link
Author

drolpi commented May 4, 2021

Do you need more information?

@Phoenix616
Copy link
Owner

Seeing as the issue isn't happening for me, yes.

@drolpi
Copy link
Author

drolpi commented May 4, 2021

Okay, what else do you need?

@Phoenix616
Copy link
Owner

Phoenix616 commented May 4, 2021

Full plugin (code) would be the easiest to debug this with, otherwise you are going to have to provide an extremely simple example which can reproduce this behaviour. (Because I can't create one that does)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants