CraftBook 3

CraftBook 3

139k Downloads

Minecart dispenser loses items

coderjo opened this issue ยท 8 comments

commented

The minecart dispenser does not move items contained in a cart into the chest, but instead just loses all of the items in a storage cart, as well as the chest used to make the storage cart.

commented

Ok. I have managed to put the storage cart or powered cart into the chest safely, but I am having difficulty accessing the contents of the storage cart in order to add them to the destination dispenser chest. For some reason, all of the item slots in the item array come up null, no matter how I've accessed it so far.

commented

The contents of storage minecarts are client-side, and are not seen by the server. Otherwise, this bug is confirmed. I will look into it.

commented

It appears that Minecart.getType() is giving incorrect responses, and as such, any possible fix for this will not work correctly. The fix will be delayed until this can be resolved.

commented

Minecart.getType() appears to be giving the correct response for me, based on the logging I added to my fork. The only unresolved part of putting the cart into the chest is getting the contents of the storage cart.

commented

Maybe it's my code breaking then. If you'd like, send a pull request later.

commented

Can't fix this until storage minecarts are server-side, so I'm leaving this open.

commented

I don't know what that has to do with items in a storage cart getting put into a dispenser chest on the tracks.

commented

We are using something else for tickets and it looks like it is triggering for GitHub too. Perhaps we shouldn't be using two issue trackers...