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

Add support for ender Expansion #97

Open
rourke750 opened this issue Sep 29, 2013 · 0 comments
Open

Add support for ender Expansion #97

rourke750 opened this issue Sep 29, 2013 · 0 comments

Comments

@rourke750
Copy link

Currently the inventory is one created through bukkit.creatinventory so interacting with an inventory like ender chests its going to get the wrong one.
So I dont think that ender expansion will work with item exchange because of how ender expansion finds the inventory. Can you add somewhere if the player interacts with a ender chest then to find the inventory you need to use this line of code :

Location loc = e.getClickedBlock().getLocation();
Inventory inv = Enderplugin.getchestInventory(loc);

using that code and by placing the location of where the ender chest is you can find the correct inventory.

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

1 participant