Hello, I've recently been working on this cool mod, and I came across a problem.
I need to make some methods (for resetting fire to air) wait for 1/2 a second without causing immense lag, crashing the client/server or not calling the fire setting methods.
With my current code, here: http://gw.minecraftforge.net/MFKn , it does nothing when I right click. Well, I guess it does something. It replaces the blocks in a 5 block radius with air. It doesn't place the fire like I wanted it to.
When I used threading, like Thread.sleep(), it causes immense lag and sometimes doesn't even make the fire.
If I use the wait() method it actually makes the client wait, and onItemUse doesn't like that so it crashes.
So, any good wait methods?