Applying requested changes

This commit is contained in:
marcocorriero 2017-11-17 14:12:21 +01:00 committed by GitHub
parent 3babdf88a2
commit cba204d9f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,9 +18,7 @@ import org.bukkit.event.player.PlayerMoveEvent;
public class Trailer extends FreedomService
{
public byte data;
private byte data;
private final Random random = new Random();
private final Set<String> trailPlayers = new HashSet<>(); // player name
@ -65,10 +63,9 @@ public class Trailer extends FreedomService
}
final Location location = fromBlock.getLocation();
fromBlock.setType(Material.WOOL);
DepreciationAggregator.setData_Block(fromBlock, (byte) random.nextInt(16));
final byte data = DepreciationAggregator.getData_Block(fromBlock);
private byte data = DepreciationAggregator.getData_Block(fromBlock);
Material material = Material.getMaterial(String.valueOf(fromBlock.getType()));
for (int x = -1; x <= 1; x++)
{