Skip to content

Commit b8c657d

Browse files
committed
update
1 parent a74083d commit b8c657d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
-42 Bytes
Binary file not shown.

src/JavaGameEngine/Backend/UpdateThread.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ public UpdateThread(LinkedList<Component> o) {
2727
private LinkedList<Component> UpdateObjects()
2828
{
2929
for (Component component : ComponentHandler.getObjects()) {
30-
component.setCameraPosition(UpdateThread.camera.getPosition());
31-
component.update();
32-
30+
if(component.isEnabled()){
31+
//component.setCameraPosition(UpdateThread.camera.getPosition());
32+
component.update();
33+
}
3334
}
3435
return ComponentHandler.getObjects();
3536
}

0 commit comments

Comments
 (0)