Skip to content

Commit

Permalink
Update World.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Lildirt authored and Lildirt committed Feb 6, 2015
1 parent 0dcce63 commit c29c94e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/laytonsmith/core/functions/World.java
Original file line number Diff line number Diff line change
Expand Up @@ -1824,11 +1824,11 @@ public Boolean runAsync() {
public Construct exec(Target target, Environment environment, Construct... args) throws ConfigRuntimeException {
MCPlayer player = environment.getEnv(CommandHelperEnvironment.class).GetPlayer();
MCWorld world = null;
if(player != null) { world = player.getWorld(); }
if(player != null) {
world = player.getWorld();
}
MCLocation loc = ObjectGenerator.GetGenerator().location(args[0], world, target);
double temp;
temp = loc.getBlock().getTemperature();
return new CDouble(temp, target);
return new CDouble(loc.getBlock().getTemperature(), target);
}

@Override
Expand Down

0 comments on commit c29c94e

Please sign in to comment.