Map crumble issue
Fixes an issue where the max distance of a map would not be calculated correctly affecting the map crumble
This commit is contained in:
parent
faece2c5f8
commit
03b3c1864d
@ -215,6 +215,7 @@ public abstract class Skywars extends Game
|
||||
setupMiddleLoot();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ParseData()
|
||||
{
|
||||
parseCreateZombieSpawns();
|
||||
@ -471,7 +472,7 @@ public abstract class Skywars extends Game
|
||||
}
|
||||
if (bestBlock.getType() == Material.WOODEN_DOOR || bestBlock.getType() == Material.IRON_DOOR_BLOCK)
|
||||
{
|
||||
MapUtil.QuickChangeBlockAt(bestBlock.getLocation().add(0, 1, 0), Material.AIR);
|
||||
MapUtil.QuickChangeBlockAt(bestBlock.getRelative(BlockFace.UP).getLocation(), Material.AIR);
|
||||
}
|
||||
MapUtil.QuickChangeBlockAt(bestBlock.getLocation(), Material.AIR);
|
||||
}
|
||||
@ -877,7 +878,10 @@ public abstract class Skywars extends Game
|
||||
@EventHandler
|
||||
public void onBlockPhysics(BlockPhysicsEvent event)
|
||||
{
|
||||
_worldBlocks.add(event.getBlock());
|
||||
if (IsLive())
|
||||
{
|
||||
_worldBlocks.add(event.getBlock());
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
@ -1,8 +1,8 @@
|
||||
package nautilus.game.arcade.kit;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
@ -56,7 +56,7 @@ public abstract class ProgressingKit extends Kit implements ProgressiveKit
|
||||
|
||||
private String _internalName;
|
||||
private PlayerKitDataManager _dataManager;
|
||||
private HashMap<Integer, ArrayList<KitAbilityDetail>> _kitAbilityDetails;
|
||||
private Map<Integer, List<KitAbilityDetail>> _kitAbilityDetails;
|
||||
private Perk[][] _perks;
|
||||
|
||||
public ProgressingKit(ArcadeManager manager, String name, String internalName, KitAvailability kitAvailability, String[] kitDesc, Perk[][] kitPerks, EntityType entityType, ItemStack itemInHand)
|
||||
@ -139,7 +139,7 @@ public abstract class ProgressingKit extends Kit implements ProgressiveKit
|
||||
}
|
||||
|
||||
@Override
|
||||
public HashMap<Integer, ArrayList<KitAbilityDetail>> getAbilityDetails()
|
||||
public Map<Integer, List<KitAbilityDetail>> getAbilityDetails()
|
||||
{
|
||||
return _kitAbilityDetails;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user