re-check every { and }
for instance: why do you open a bracket on the next line
if(!world.multiplayerWorld)
{
world.entityJoinedWorld(new EntityRocketLAW(world, entityplayer));
++timesshot;
<strong>{</strong>
itemstack.damageItem(6, entityplayer);
return itemstack;
I think you'll find you didn't close all your blocks that you open with a '{'.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
Use Ctrl+Shift+F when you work in Eclipse,
for all we know, he's writing his code in Notepad ..
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
Maybe, that's why I said 'if'.
I always encourage people to start programming with a good IDE (no, let's not start a discussion which is the best), to avoid these kind of mistakes.
just re-read your previous post. I don't see an 'if' there, just a 'when' what is not entirely a synonym for if.
there is no 'Best' IDE, so discussing which is the best is indeed very pointless, but when starting to develop, I think it's better to use a simple text-editor. an IDE is capable of doing a lot of the work for you, which is one of the reasons why it's best to start with an IDE when you already have the hang of: writing small applications, working with packages, compiling and running from the command line, ..
which is why I said, that, for all we know, he(/she) is using notepad (or a similar editor). Indenting the code, especially when the class is as small as the one posted above, can be quite easily done manually, and when doing so, he'll find the mistakes as soon as he tries to indent a non-existing bracket.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433