j
That is my code, I am getting the error on "if (!getWorld().getObjects(Counter.class).isEmpty())"
How do I solve this?
1 2 3 4 5 6 7 8 | if (!getWorld().getObjects(Counter. class ).isEmpty()){ Counter counter = (Counter) getWorld().getObjects(Counter. class ).get( 0 ); int counterValue = counter.getValue(); if (counterValue == 40 ) { getWorld().removeObject( this ); } } |