Page 1 of 1

Persistent Empty Bucket

PostPosted: Fri Mar 06, 2015 00:55
by poet.nohit
I noticed in the 0.4.12-dev today's build (March 5), that I get "Empty Bucket" when I fill a bucket with water. If I drop the bucket and pick it up, it appears as "Water Bucket" again.

Re: Persistent Empty Bucket

PostPosted: Fri Mar 06, 2015 08:12
by TenPlus1
That build seems to have problems with replacing items in your hotbar, eating food doesnt reduce the count until you log out and back in again also...

Re: Persistent Empty Bucket

PostPosted: Fri Mar 06, 2015 23:02
by poet.nohit
I found that it updated if I right-clicked a tool in my hotbar, as well. It seems like it's just some weird cosmetic bug.

Re: Persistent Empty Bucket

PostPosted: Tue Mar 17, 2015 21:22
by poet.nohit
Still confirmed in the latest engine.

How to reproduce:

Create a minimal world
giveme bucket
pick up and place water using the bucket

Re: Persistent Empty Bucket

PostPosted: Fri Mar 20, 2015 17:32
by poet.nohit
Okay. I looked into this, and it turns out to be a pretty easy fix:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
         // Apply returned ItemStack
         if (playersao->setWieldedItem(item)) {
            SendInventory(playersao);
         }


You need both calls to setWieldedItem to then call SendInventory in serverpackethandler. That seems to do the trick.