incinerators fueled with a lavabucket, shouldn't eat the bucket

This commit is contained in:
darkrose 2014-01-04 20:25:23 +10:00
parent 7bfe401b07
commit 2bebd78b36
1 changed files with 3 additions and 0 deletions

View File

@ -2623,7 +2623,10 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
UpdateCrafting(peer_id);
SendInventory(peer_id);
if (fitem->getCount() == 1) {
content_t c = fitem->getContent();
ilist->deleteItem(0);
if (c == CONTENT_TOOLITEM_STEELBUCKET_LAVA)
ilist->addItem(0,new ToolItem(CONTENT_TOOLITEM_STEELBUCKET,0));
}else{
fitem->remove(1);
}