Persistent Empty Bucket

poet.nohit
Member
 
Posts: 55
Joined: Fri Mar 06, 2015 00:50
GitHub: poet-nohit

Persistent Empty Bucket

by poet.nohit » Fri Mar 06, 2015 00:55

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.
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: Persistent Empty Bucket

by TenPlus1 » Fri Mar 06, 2015 08:12

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...
 

poet.nohit
Member
 
Posts: 55
Joined: Fri Mar 06, 2015 00:50
GitHub: poet-nohit

Re: Persistent Empty Bucket

by poet.nohit » Fri Mar 06, 2015 23:02

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.
 

poet.nohit
Member
 
Posts: 55
Joined: Fri Mar 06, 2015 00:50
GitHub: poet-nohit

Re: Persistent Empty Bucket

by poet.nohit » Tue Mar 17, 2015 21:22

Still confirmed in the latest engine.

How to reproduce:

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

poet.nohit
Member
 
Posts: 55
Joined: Fri Mar 06, 2015 00:50
GitHub: poet-nohit

Re: Persistent Empty Bucket

by poet.nohit » Fri Mar 20, 2015 17:32

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.
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 18 guests

cron