mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +00:00
Update Trailer.java
This commit is contained in:
parent
cba204d9f3
commit
a10a0cbef9
@ -14,11 +14,8 @@ import org.bukkit.event.EventHandler;
|
|||||||
import org.bukkit.event.EventPriority;
|
import org.bukkit.event.EventPriority;
|
||||||
import org.bukkit.event.player.PlayerMoveEvent;
|
import org.bukkit.event.player.PlayerMoveEvent;
|
||||||
|
|
||||||
|
|
||||||
public class Trailer extends FreedomService
|
public class Trailer extends FreedomService
|
||||||
{
|
{
|
||||||
|
|
||||||
private byte data;
|
|
||||||
private final Random random = new Random();
|
private final Random random = new Random();
|
||||||
private final Set<String> trailPlayers = new HashSet<>(); // player name
|
private final Set<String> trailPlayers = new HashSet<>(); // player name
|
||||||
|
|
||||||
@ -65,7 +62,7 @@ public class Trailer extends FreedomService
|
|||||||
final Location location = fromBlock.getLocation();
|
final Location location = fromBlock.getLocation();
|
||||||
fromBlock.setType(Material.WOOL);
|
fromBlock.setType(Material.WOOL);
|
||||||
DepreciationAggregator.setData_Block(fromBlock, (byte) random.nextInt(16));
|
DepreciationAggregator.setData_Block(fromBlock, (byte) random.nextInt(16));
|
||||||
private byte data = DepreciationAggregator.getData_Block(fromBlock);
|
byte data = DepreciationAggregator.getData_Block(fromBlock);
|
||||||
Material material = Material.getMaterial(String.valueOf(fromBlock.getType()));
|
Material material = Material.getMaterial(String.valueOf(fromBlock.getType()));
|
||||||
for (int x = -1; x <= 1; x++)
|
for (int x = -1; x <= 1; x++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user