mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Use equalsIgnoreCase() instead of equals(), and use == for compaing
worlds. Fixes #815
This commit is contained in:
		@@ -77,7 +77,7 @@ public final class Misc {
 | 
			
		||||
     * @return true if the distance between <code>first</code> and <code>second</code> is less than <code>maxDistance</code>, false otherwise
 | 
			
		||||
     */
 | 
			
		||||
    public static boolean isNear(Location first, Location second, double maxDistance) {
 | 
			
		||||
        if (!first.getWorld().equals(second.getWorld())) {
 | 
			
		||||
        if (first.getWorld() != second.getWorld()) {
 | 
			
		||||
            return false;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user