mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-03 18:53:43 +01:00 
			
		
		
		
	Revert "copy yaw and pitch when converting between Bukkit Location and PlotSquared Location"
Undo this since I can't guarantee that there aren't side effects.
This commit is contained in:
		@@ -212,14 +212,12 @@ import java.util.Set;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    public static Location getLocation(@NonNull final org.bukkit.Location location) {
 | 
					    public static Location getLocation(@NonNull final org.bukkit.Location location) {
 | 
				
			||||||
        return new Location(location.getWorld().getName(), MathMan.roundInt(location.getX()),
 | 
					        return new Location(location.getWorld().getName(), MathMan.roundInt(location.getX()),
 | 
				
			||||||
            MathMan.roundInt(location.getY()), MathMan.roundInt(location.getZ()),
 | 
					            MathMan.roundInt(location.getY()), MathMan.roundInt(location.getZ()));
 | 
				
			||||||
            location.getYaw(), location.getPitch());
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public static org.bukkit.Location getLocation(@NonNull final Location location) {
 | 
					    public static org.bukkit.Location getLocation(@NonNull final Location location) {
 | 
				
			||||||
        return new org.bukkit.Location(getWorld(location.getWorld()), location.getX(),
 | 
					        return new org.bukkit.Location(getWorld(location.getWorld()), location.getX(),
 | 
				
			||||||
            location.getY(), location.getZ(),
 | 
					            location.getY(), location.getZ());
 | 
				
			||||||
            location.getYaw(), location.getPitch());
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public static World getWorld(@NonNull final String string) {
 | 
					    public static World getWorld(@NonNull final String string) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user