Update Trailer.java

This commit is contained in:
marcocorriero 2017-11-22 20:48:45 +01:00 committed by GitHub
parent cba204d9f3
commit a10a0cbef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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++)
{ {