parent
3a9b253401
commit
fc7e940cbe
|
|
@ -2156,7 +2156,6 @@ class PlayerEventHandler implements Listener
|
|||
|
||||
//figure out which chunk to repair
|
||||
Chunk chunk = player.getWorld().getChunkAt(clickedBlock.getLocation());
|
||||
|
||||
//start the repair process
|
||||
|
||||
//set boundaries for processing
|
||||
|
|
|
|||
|
|
@ -82,8 +82,8 @@ class RestoreNatureExecutionTask implements Runnable
|
|||
|
||||
try
|
||||
{
|
||||
currentBlock.setType(blockUpdate.typeId, false);
|
||||
currentBlock.setBlockData(blockUpdate.data, false);
|
||||
currentBlock.setType(blockUpdate.typeId, false);
|
||||
// currentBlock.setBlockData(blockUpdate.data, false);
|
||||
}
|
||||
catch(IllegalArgumentException e)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ class RestoreNatureProcessingTask implements Runnable
|
|||
this.fillHolesAndTrenches();
|
||||
|
||||
//fill water depressions and fix unnatural surface ripples
|
||||
this.fixWater();
|
||||
//this.fixWater();
|
||||
|
||||
//remove water/lava above sea level
|
||||
this.removeDumpedFluids();
|
||||
|
|
@ -158,7 +158,7 @@ class RestoreNatureProcessingTask implements Runnable
|
|||
this.coverSurfaceStone();
|
||||
|
||||
//remove any player-placed leaves
|
||||
this.removePlayerLeaves();
|
||||
///this.removePlayerLeaves();
|
||||
|
||||
//schedule main thread task to apply the result to the world
|
||||
RestoreNatureExecutionTask task = new RestoreNatureExecutionTask(this.snapshots, this.miny, this.lesserBoundaryCorner, this.greaterBoundaryCorner, this.player);
|
||||
|
|
@ -327,6 +327,7 @@ class RestoreNatureProcessingTask implements Runnable
|
|||
for(int y = miny; y < snapshots[0].length - 1; y++)
|
||||
{
|
||||
BlockSnapshot block = snapshots[x][y][z];
|
||||
|
||||
if(this.playerBlocks.contains(block.typeId))
|
||||
{
|
||||
block.typeId = Material.AIR;
|
||||
|
|
@ -444,7 +445,7 @@ class RestoreNatureProcessingTask implements Runnable
|
|||
}
|
||||
else
|
||||
{
|
||||
this.snapshots[x][y][z].typeId = Material.GRASS;
|
||||
this.snapshots[x][y][z].typeId = Material.GRASS_BLOCK;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user