mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-17 12:54:43 +02:00
Sponge fixes
This commit is contained in:
@ -131,7 +131,11 @@ public class SpongeBlockManager extends BlockManager {
|
||||
|
||||
@Override
|
||||
public Location getSpawn(String world) {
|
||||
return SpongeUtil.getLocation(world, SpongeUtil.getWorld(world).getSpawnLocation());
|
||||
World worldObj = SpongeUtil.getWorld(world);
|
||||
org.spongepowered.api.world.Location loc = worldObj.getSpawnLocation();
|
||||
Location result = SpongeUtil.getLocation(world, SpongeUtil.getWorld(world).getSpawnLocation());
|
||||
result.setY(getHeighestBlock(world, result.getX(), result.getZ()));
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user