Skip to content

Commit

Permalink
Skip signs in unloaded worlds
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy committed Nov 25, 2013
1 parent a9b6d05 commit bec6e47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pom.xml
Expand Up @@ -29,9 +29,8 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.4.7-R1.0</version>
<type>jar</type>
<scope>compile</scope>
<version>1.6.4-R2.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
Expand Up @@ -170,7 +170,7 @@ private void loadRoutes() {
for (Entry<String, Object> e : inputMap.entrySet()) {
Object v = e.getValue();
String routeName = e.getKey();
if (routeName.contains("¤")) { continue; } // clean up old invalid data
if (routeName.contains("")) { continue; } // clean up old invalid data
routes.put(routeName, new Route((Map<String,Object>)v));
}
}
Expand Down Expand Up @@ -796,6 +796,7 @@ private void updateSigns() {
final int y = (Integer)location[2];
final int z = (Integer)location[3];

if (world == null) continue;
if (world.isChunkLoaded(x/16, z/16)) {
final Block block = world.getBlockAt(x, y, z);
final BlockState state = block.getState();
Expand Down

0 comments on commit bec6e47

Please sign in to comment.