mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-12 22:03:53 +00:00
Forgot class paths, remove things lombok covers, and optimize imports
This commit is contained in:
@ -143,7 +143,7 @@ public class ItemFun extends FreedomService
|
||||
Vector playerDirection = location.getDirection().normalize();
|
||||
|
||||
double distance = 150.0;
|
||||
Block targetBlock = DepreciationAggregator.getTargetBlock(player, null, Math.round((float) distance));
|
||||
Block targetBlock = DepreciationAggregator.getTargetBlock(player, null, Math.round((float)distance));
|
||||
if (targetBlock != null)
|
||||
{
|
||||
distance = location.distance(targetBlock.getLocation());
|
||||
@ -200,7 +200,7 @@ public class ItemFun extends FreedomService
|
||||
Location player_pos = player.getLocation();
|
||||
Vector direction = player_pos.getDirection().normalize();
|
||||
|
||||
LivingEntity rezzed_mob = (LivingEntity) player.getWorld().spawnEntity(player_pos.add(direction.multiply(2.0)), fPlayer.mobThrowerCreature());
|
||||
LivingEntity rezzed_mob = (LivingEntity)player.getWorld().spawnEntity(player_pos.add(direction.multiply(2.0)), fPlayer.mobThrowerCreature());
|
||||
rezzed_mob.setVelocity(direction.multiply(fPlayer.mobThrowerSpeed()));
|
||||
fPlayer.enqueueMob(rezzed_mob);
|
||||
|
||||
|
@ -35,7 +35,7 @@ public class MobStacker extends FreedomService
|
||||
return;
|
||||
}
|
||||
|
||||
Player attacker = (Player) event.getDamager();
|
||||
Player attacker = (Player)event.getDamager();
|
||||
|
||||
if (!plugin.al.isAdmin(attacker))
|
||||
{
|
||||
|
@ -1,9 +1,11 @@
|
||||
package me.totalfreedom.totalfreedommod.fun;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Random;
|
||||
import java.util.Set;
|
||||
import me.totalfreedom.totalfreedommod.FreedomService;
|
||||
import me.totalfreedom.totalfreedommod.TotalFreedomMod;
|
||||
import me.totalfreedom.totalfreedommod.util.MaterialGroup;
|
||||
import me.totalfreedom.totalfreedommod.util.DepreciationAggregator;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
@ -12,9 +14,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.player.PlayerMoveEvent;
|
||||
import java.util.HashSet;
|
||||
import java.util.Random;
|
||||
import java.util.Set;
|
||||
|
||||
public class Trailer extends FreedomService
|
||||
{
|
||||
|
Reference in New Issue
Block a user