fixed bacon blast exloding blocks
fixed sg compass pointing to teammates
This commit is contained in:
parent
f8401e0eeb
commit
0dff0ffe1d
@ -941,7 +941,7 @@ public abstract class SurvivalGames extends Game
|
||||
|
||||
for (Player alive : GetPlayers(true))
|
||||
{
|
||||
if (alive != player)
|
||||
if (alive != player && getArcadeManager().canHurt(player, alive))
|
||||
{
|
||||
double distance = alive.getLocation().distance(
|
||||
player.getLocation());
|
||||
@ -1546,7 +1546,7 @@ public abstract class SurvivalGames extends Game
|
||||
|
||||
// Misc
|
||||
_baseLoot.addLoot(new RandomItem(Material.EXP_BOTTLE, 30, 1, 2));
|
||||
_baseLoot.addLoot(new RandomItem(Material.COMPASS, 20));
|
||||
_baseLoot.addLoot(new RandomItem(Material.COMPASS, 1000));//20
|
||||
_baseLoot.addLoot(new RandomItem(Material.STICK, 30, 1, 2));
|
||||
_baseLoot.addLoot(new RandomItem(Material.BOAT, 15));
|
||||
_baseLoot.addLoot(new RandomItem(Material.FLINT, 30, 1, 2));
|
||||
|
@ -1,5 +1,6 @@
|
||||
package nautilus.game.arcade.kit.perks;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.block.Block;
|
||||
@ -109,7 +110,9 @@ public class PerkBaconBlast extends Perk implements IThrown
|
||||
|
||||
public void Explode(ProjectileUser data)
|
||||
{
|
||||
data.GetThrown().getWorld().createExplosion(data.GetThrown().getLocation(), 0.5f);
|
||||
// for whatever reason, you can't put a location in createExplosion if you don't want it to break blocks >.>
|
||||
Location loc = data.GetThrown().getLocation();
|
||||
data.GetThrown().getWorld().createExplosion(loc.getX(), loc.getY(), loc.getZ(), 0.5f, false, false);
|
||||
data.GetThrown().remove();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user