some bug fixes, updated engine with support for new .trn versions, refactored some code with new Java 8 syntax, changed compiler to java 8

This commit is contained in:
Light2
2014-03-25 20:08:01 +01:00
parent 0742c19af3
commit 3e265ed6c5
23 changed files with 476 additions and 361 deletions
@@ -60,19 +60,10 @@ public class BuildingObject extends TangibleObject implements IPersistent {
final AtomicReference<CellObject> ref = new AtomicReference<CellObject>();
synchronized(objectMutex) {
this.viewChildren(this, true, false, new Traverser() {
@Override
public void process(SWGObject obj) {
if(obj instanceof CellObject && ((CellObject) obj).getCellNumber() == cellNumber)
ref.set((CellObject) obj);
}
this.viewChildren(this, true, false, (obj) -> {
if(obj instanceof CellObject && ((CellObject) obj).getCellNumber() == cellNumber)
ref.set((CellObject) obj);
});
}
return ref.get();