Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
ab16bf89e5
@ -835,7 +835,7 @@ public class UtilBlock
|
|||||||
return getBedHead(bed.getBlock()) != null && getBedFoot(bed.getBlock()) != null;
|
return getBedHead(bed.getBlock()) != null && getBedFoot(bed.getBlock()) != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static HashSet<Block> findConnectedBlocks(Block block, HashSet<Block> blocks, int limit)
|
public static HashSet<Block> findConnectedBlocks(Block source, Block block, HashSet<Block> blocks, int limit, double range)
|
||||||
{
|
{
|
||||||
if (blocks == null)
|
if (blocks == null)
|
||||||
blocks = new HashSet<Block>();
|
blocks = new HashSet<Block>();
|
||||||
@ -853,9 +853,12 @@ public class UtilBlock
|
|||||||
if (neighbour.getType() == Material.AIR)
|
if (neighbour.getType() == Material.AIR)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (UtilMath.offset(source.getLocation(), neighbour.getLocation()) > range)
|
||||||
|
continue;
|
||||||
|
|
||||||
//If neighbour hasn't been searched, recursively search it!
|
//If neighbour hasn't been searched, recursively search it!
|
||||||
if (!blocks.contains(neighbour))
|
if (!blocks.contains(neighbour))
|
||||||
findConnectedBlocks(neighbour, blocks, limit);
|
findConnectedBlocks(source, neighbour, blocks, limit, range);
|
||||||
}
|
}
|
||||||
|
|
||||||
return blocks;
|
return blocks;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||||
<classpathentry combineaccessrules="false" kind="src" path="/Mineplex.Core.Common"/>
|
<classpathentry combineaccessrules="false" kind="src" path="/Mineplex.Core.Common"/>
|
||||||
<classpathentry combineaccessrules="false" kind="src" path="/Mineplex.Minecraft.Game.Core"/>
|
<classpathentry combineaccessrules="false" kind="src" path="/Mineplex.Minecraft.Game.Core"/>
|
||||||
<classpathentry combineaccessrules="false" kind="src" path="/Mineplex.Minecraft.Game.ClassCombat"/>
|
<classpathentry combineaccessrules="false" kind="src" path="/Mineplex.Minecraft.Game.ClassCombat"/>
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.7
|
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.source=1.7
|
org.eclipse.jdt.core.compiler.source=1.8
|
||||||
org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=next_line
|
org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=next_line
|
||||||
org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
|
org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
|
||||||
org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
|
org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
|
||||||
|
@ -308,8 +308,6 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
|||||||
new SoupAddon(plugin, this);
|
new SoupAddon(plugin, this);
|
||||||
new TeamArmorAddon(plugin, this);
|
new TeamArmorAddon(plugin, this);
|
||||||
|
|
||||||
// new NotificationManager(getPlugin(), clientManager);
|
|
||||||
|
|
||||||
new BonusManager(plugin, clientManager, serverStatusManager, donationManager, pollManager , npcManager, hologramManager, statsManager, _inventoryManager, petManager, giveawayManager);
|
new BonusManager(plugin, clientManager, serverStatusManager, donationManager, pollManager , npcManager, hologramManager, statsManager, _inventoryManager, petManager, giveawayManager);
|
||||||
|
|
||||||
//Champions Modules
|
//Champions Modules
|
||||||
|
@ -77,8 +77,6 @@ import org.bukkit.inventory.ItemStack;
|
|||||||
import org.bukkit.potion.PotionEffect;
|
import org.bukkit.potion.PotionEffect;
|
||||||
import org.bukkit.potion.PotionEffectType;
|
import org.bukkit.potion.PotionEffectType;
|
||||||
|
|
||||||
import com.sun.xml.internal.ws.resources.UtilMessages;
|
|
||||||
|
|
||||||
public class EventGame extends Game
|
public class EventGame extends Game
|
||||||
{
|
{
|
||||||
private GameHostManager _mps;
|
private GameHostManager _mps;
|
||||||
|
@ -30,8 +30,6 @@ import org.bukkit.entity.Projectile;
|
|||||||
import org.bukkit.entity.Slime;
|
import org.bukkit.entity.Slime;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
import sun.rmi.runtime.Log;
|
|
||||||
|
|
||||||
public class Ball
|
public class Ball
|
||||||
{
|
{
|
||||||
private MonsterLeague _host;
|
private MonsterLeague _host;
|
||||||
|
@ -302,6 +302,11 @@ public class Runner extends SoloGame implements IThrown
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (target.getLocation().getY() > data.GetThrown().getLocation().getY() + 0.5)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Damage Event
|
//Damage Event
|
||||||
|
Loading…
Reference in New Issue
Block a user