1

How can I refresh the player inventory after removing item?

Fureniku's Avatar Fureniku9/23/13 5:13 pm
1 emeralds 110
Hey guys,

Not sure if anyone here can help with my issue.

I'm very close to having the ATM all finished up in my FlenixCities mod. However, I'm having one small issue.

One of the features I've added is that after 3 failed attempts at entering your pin code, your debit card is removed. However, when the packet is fired off for this, everything happens except the card visibily is still there.

If I right click the floor or anything else with it, the card vanishes as it should do, so it's only a graphical issue there - but, if I try and right-click the ATM with it while it's ghosted, it crashes the client, which is a slightly more serious issue.

So, does anyone know how I can tell the player's inventory to update and remove the card properly?
Posted by Fureniku's Avatar
Fureniku
Level 88 : Elite Modder
956

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome