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

Error in wiki text for GUI #39

Open
PiscesdanAT opened this issue Jun 10, 2018 · 1 comment
Open

Error in wiki text for GUI #39

PiscesdanAT opened this issue Jun 10, 2018 · 1 comment

Comments

@PiscesdanAT
Copy link

PiscesdanAT commented Jun 10, 2018

https://wiki.mcjty.eu/modding/index.php?title=GUI-1.12

In the TestContainerBlock class, the onBlockActivated method doesn't(or no longer?) need the parameter ItemStack heldItem .

Edit: After looking some more, the wiki is also missing the entire drawScreen method.

The code in the repo has the correct version.

@pkmnfrk
Copy link

pkmnfrk commented Jul 12, 2018

There is also another error on this very same page, in the TestContainer code snippet. In the transferStackInSlot method, there are several return null; statements, which should be return ItemStack.EMPTY;.

The code in the repo is correct.

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

2 participants