Skip to content

Commit

Permalink
Update WorldTime constants
Browse files Browse the repository at this point in the history
  • Loading branch information
msteiger committed Oct 31, 2014
1 parent 894036e commit 340993e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/main/java/org/terasology/seasons/Season.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ public enum Season {
FALL("fall", 6),
WINTER("winter", 6);

/**
* Constant that needs to be added to the world time to get the season time.
*/
public static final double WORLD_TIME_OFFSET = -(WorldTime.DAY_LENGTH - WorldTimeImpl.DUSK_TIME) * WorldTimeImpl.MS_TO_DAYS;

/**
* The amount of days of all seasons combined.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/terasology/seasons/SeasonSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
@Share(value = SeasonSystem.class)
public class SeasonSystem extends BaseComponentSystem {
private static final Logger logger = LoggerFactory.getLogger(SeasonSystem.class);
private static final float TIME_SHIFT = WorldTimeImpl.MIDDAY_TIME * WorldTimeImpl.MS_TO_DAYS;
private static final float TIME_SHIFT = WorldTime.MIDDAY_TIME * WorldTime.DAY_LENGTH;

@In
private EntityManager entityManager;
Expand Down

0 comments on commit 340993e

Please sign in to comment.