j
That is my code, I am getting the error on "if (!getWorld().getObjects(Counter.class).isEmpty())"
How do I solve this?
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); } }