mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-29 19:46:42 +00:00
reformat
This commit is contained in:
@ -327,7 +327,7 @@ public class ItemFun extends FreedomService
|
||||
//Redundant Player cast is required to avoid suspicious method calls.
|
||||
if (arrow != null
|
||||
&& (arrow.getShooter() instanceof Player)
|
||||
&& explosivePlayers.contains((Player)arrow.getShooter()))
|
||||
&& explosivePlayers.contains(arrow.getShooter()))
|
||||
{
|
||||
Objects.requireNonNull(arrow.getLocation().getWorld()).createExplosion(arrow.getLocation().getX(), arrow.getLocation().getY(), arrow.getLocation().getZ(), ConfigEntry.EXPLOSIVE_RADIUS.getDouble().floatValue(), false, ConfigEntry.ALLOW_EXPLOSIONS.getBoolean());
|
||||
arrow.remove();
|
||||
|
@ -19,9 +19,9 @@ public class Jumppads extends FreedomService
|
||||
public static final double DAMPING_COEFFICIENT = 0.8;
|
||||
//
|
||||
private final Map<Player, Boolean> pushMap = Maps.newHashMap();
|
||||
public HashMap<Player, JumpPadMode> players = new HashMap<>();
|
||||
//
|
||||
private final double strength = 1 + 0.1F;
|
||||
public HashMap<Player, JumpPadMode> players = new HashMap<>();
|
||||
|
||||
public static double getDampingCoefficient()
|
||||
{
|
||||
|
@ -2,8 +2,8 @@ package me.totalfreedom.totalfreedommod.fun;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Objects;
|
||||
import java.util.SplittableRandom;
|
||||
import java.util.Set;
|
||||
import java.util.SplittableRandom;
|
||||
import me.totalfreedom.totalfreedommod.FreedomService;
|
||||
import me.totalfreedom.totalfreedommod.util.Groups;
|
||||
import org.bukkit.Location;
|
||||
|
Reference in New Issue
Block a user