mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Initial 1.14 Update
This commit is contained in:
parent
6fa41efbf5
commit
1118901ca2
@ -9,7 +9,7 @@ repositories {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':Core')
|
implementation project(':Core')
|
||||||
compile project(':Core')
|
compile project(':Core')
|
||||||
compile 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT'
|
compile 'org.spigotmc:spigot-api:1.14-pre5-SNAPSHOT'
|
||||||
compile(group: 'com.sk89q.worldedit', name: 'worldedit-bukkit', version: '7.0.0-SNAPSHOT')
|
compile(group: 'com.sk89q.worldedit', name: 'worldedit-bukkit', version: '7.0.0-SNAPSHOT')
|
||||||
compile(group: 'org.bstats', name: 'bstats-bukkit', version: '1.4')
|
compile(group: 'org.bstats', name: 'bstats-bukkit', version: '1.4')
|
||||||
compile("net.milkbowl.vault:VaultAPI:1.7") {
|
compile("net.milkbowl.vault:VaultAPI:1.7") {
|
||||||
@ -43,7 +43,6 @@ shadowJar {
|
|||||||
include(dependency('com.squareup.okio:okio:2.2.2'))
|
include(dependency('com.squareup.okio:okio:2.2.2'))
|
||||||
include(dependency('org.jetbrains.kotlin:kotlin-stdlib:1.3.21'))
|
include(dependency('org.jetbrains.kotlin:kotlin-stdlib:1.3.21'))
|
||||||
}
|
}
|
||||||
// relocate('org.mcstats', 'com.plotsquared.stats')
|
|
||||||
archiveName = "${parent.name}-${project.name}-${parent.version}.jar"
|
archiveName = "${parent.name}-${project.name}-${parent.version}.jar"
|
||||||
destinationDir = file '../target'
|
destinationDir = file '../target'
|
||||||
}
|
}
|
||||||
|
@ -247,7 +247,7 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
result = world
|
result = world
|
||||||
.unloadChunk(chunkI.getX(), chunkI.getZ(), true, false);
|
.unloadChunk(chunkI.getX(), chunkI.getZ(), true);
|
||||||
}
|
}
|
||||||
if (!result) {
|
if (!result) {
|
||||||
continue outer;
|
continue outer;
|
||||||
@ -332,15 +332,12 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
|
|||||||
Entity entity = iterator.next();
|
Entity entity = iterator.next();
|
||||||
switch (entity.getType()) {
|
switch (entity.getType()) {
|
||||||
case EGG:
|
case EGG:
|
||||||
case COMPLEX_PART:
|
|
||||||
case FISHING_HOOK:
|
case FISHING_HOOK:
|
||||||
case ENDER_SIGNAL:
|
case ENDER_SIGNAL:
|
||||||
case LINGERING_POTION:
|
|
||||||
case AREA_EFFECT_CLOUD:
|
case AREA_EFFECT_CLOUD:
|
||||||
case EXPERIENCE_ORB:
|
case EXPERIENCE_ORB:
|
||||||
case LEASH_HITCH:
|
case LEASH_HITCH:
|
||||||
case FIREWORK:
|
case FIREWORK:
|
||||||
case WEATHER:
|
|
||||||
case LIGHTNING:
|
case LIGHTNING:
|
||||||
case WITHER_SKULL:
|
case WITHER_SKULL:
|
||||||
case UNKNOWN:
|
case UNKNOWN:
|
||||||
@ -352,7 +349,6 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
|
|||||||
case SNOWBALL:
|
case SNOWBALL:
|
||||||
case SHULKER_BULLET:
|
case SHULKER_BULLET:
|
||||||
case SPECTRAL_ARROW:
|
case SPECTRAL_ARROW:
|
||||||
case TIPPED_ARROW:
|
|
||||||
case ENDER_PEARL:
|
case ENDER_PEARL:
|
||||||
case ARROW:
|
case ARROW:
|
||||||
case LLAMA_SPIT:
|
case LLAMA_SPIT:
|
||||||
@ -421,12 +417,12 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
|
|||||||
if (Settings.Enabled_Components.KILL_ROAD_MOBS) {
|
if (Settings.Enabled_Components.KILL_ROAD_MOBS) {
|
||||||
LivingEntity livingEntity = (LivingEntity) entity;
|
LivingEntity livingEntity = (LivingEntity) entity;
|
||||||
List<MetadataValue> meta = entity.getMetadata("plot");
|
List<MetadataValue> meta = entity.getMetadata("plot");
|
||||||
if (meta != null && !meta.isEmpty()) {
|
if (!meta.isEmpty()) {
|
||||||
if (livingEntity.isLeashed()) {
|
if (livingEntity.isLeashed()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
List<MetadataValue> keep = entity.getMetadata("keep");
|
List<MetadataValue> keep = entity.getMetadata("keep");
|
||||||
if (keep != null && !keep.isEmpty()) {
|
if (!keep.isEmpty()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -774,6 +770,7 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
assert world != null;
|
||||||
ChunkGenerator gen = world.getGenerator();
|
ChunkGenerator gen = world.getGenerator();
|
||||||
if (gen instanceof BukkitPlotGenerator) {
|
if (gen instanceof BukkitPlotGenerator) {
|
||||||
PlotSquared.get().loadWorld(worldName, (BukkitPlotGenerator) gen);
|
PlotSquared.get().loadWorld(worldName, (BukkitPlotGenerator) gen);
|
||||||
|
@ -94,7 +94,7 @@ import static com.github.intellectualsites.plotsquared.plot.util.ReflectionUtils
|
|||||||
if (System.currentTimeMillis() - start > 5) {
|
if (System.currentTimeMillis() - start > 5) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
chunk.unload(true, false);
|
chunk.unload(true);
|
||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -112,7 +112,7 @@ import static com.github.intellectualsites.plotsquared.plot.util.ReflectionUtils
|
|||||||
field.set(false);
|
field.set(false);
|
||||||
if (chunk.isLoaded()) {
|
if (chunk.isLoaded()) {
|
||||||
ignoreUnload = true;
|
ignoreUnload = true;
|
||||||
chunk.unload(false, false);
|
chunk.unload(false);
|
||||||
ignoreUnload = false;
|
ignoreUnload = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -225,7 +225,7 @@ import static com.github.intellectualsites.plotsquared.plot.util.ReflectionUtils
|
|||||||
TaskManager.tasks.remove(currentIndex);
|
TaskManager.tasks.remove(currentIndex);
|
||||||
PlotSquared
|
PlotSquared
|
||||||
.debug(Captions.PREFIX.s() + "&aSuccessfully processed and unloaded chunk!");
|
.debug(Captions.PREFIX.s() + "&aSuccessfully processed and unloaded chunk!");
|
||||||
chunk.unload(true, true);
|
chunk.unload(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
BlockState[] tiles = chunk.getTileEntities();
|
BlockState[] tiles = chunk.getTileEntities();
|
||||||
@ -234,7 +234,7 @@ import static com.github.intellectualsites.plotsquared.plot.util.ReflectionUtils
|
|||||||
TaskManager.tasks.remove(currentIndex);
|
TaskManager.tasks.remove(currentIndex);
|
||||||
PlotSquared
|
PlotSquared
|
||||||
.debug(Captions.PREFIX.s() + "&aSuccessfully processed and unloaded chunk!");
|
.debug(Captions.PREFIX.s() + "&aSuccessfully processed and unloaded chunk!");
|
||||||
chunk.unload(true, true);
|
chunk.unload(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
@ -245,7 +245,7 @@ import static com.github.intellectualsites.plotsquared.plot.util.ReflectionUtils
|
|||||||
TaskManager.tasks.remove(currentIndex);
|
TaskManager.tasks.remove(currentIndex);
|
||||||
PlotSquared.debug(
|
PlotSquared.debug(
|
||||||
Captions.PREFIX.s() + "&aSuccessfully processed and unloaded chunk!");
|
Captions.PREFIX.s() + "&aSuccessfully processed and unloaded chunk!");
|
||||||
chunk.unload(true, true);
|
chunk.unload(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
tiles[i].getBlock().setType(Material.AIR, false);
|
tiles[i].getBlock().setType(Material.AIR, false);
|
||||||
|
@ -108,7 +108,6 @@ import java.util.regex.Pattern;
|
|||||||
case EGG:
|
case EGG:
|
||||||
case ENDER_PEARL:
|
case ENDER_PEARL:
|
||||||
case FIREBALL:
|
case FIREBALL:
|
||||||
case LINGERING_POTION:
|
|
||||||
case LLAMA_SPIT:
|
case LLAMA_SPIT:
|
||||||
case SHULKER_BULLET:
|
case SHULKER_BULLET:
|
||||||
case SMALL_FIREBALL:
|
case SMALL_FIREBALL:
|
||||||
@ -116,13 +115,11 @@ import java.util.regex.Pattern;
|
|||||||
case SPECTRAL_ARROW:
|
case SPECTRAL_ARROW:
|
||||||
case SPLASH_POTION:
|
case SPLASH_POTION:
|
||||||
case THROWN_EXP_BOTTLE:
|
case THROWN_EXP_BOTTLE:
|
||||||
case TIPPED_ARROW:
|
|
||||||
// projectile
|
// projectile
|
||||||
case FALLING_BLOCK:
|
case FALLING_BLOCK:
|
||||||
case PRIMED_TNT:
|
case PRIMED_TNT:
|
||||||
// Block entities
|
// Block entities
|
||||||
case AREA_EFFECT_CLOUD:
|
case AREA_EFFECT_CLOUD:
|
||||||
case COMPLEX_PART:
|
|
||||||
case ENDER_CRYSTAL:
|
case ENDER_CRYSTAL:
|
||||||
case ENDER_SIGNAL:
|
case ENDER_SIGNAL:
|
||||||
case EVOKER_FANGS:
|
case EVOKER_FANGS:
|
||||||
@ -132,7 +129,6 @@ import java.util.regex.Pattern;
|
|||||||
case LEASH_HITCH:
|
case LEASH_HITCH:
|
||||||
case LIGHTNING:
|
case LIGHTNING:
|
||||||
case UNKNOWN:
|
case UNKNOWN:
|
||||||
case WEATHER:
|
|
||||||
case WITHER_SKULL:
|
case WITHER_SKULL:
|
||||||
// non moving / unmovable
|
// non moving / unmovable
|
||||||
return EntityUtil.checkEntity(plot, Flags.ENTITY_CAP);
|
return EntityUtil.checkEntity(plot, Flags.ENTITY_CAP);
|
||||||
@ -1956,8 +1952,8 @@ import java.util.regex.Pattern;
|
|||||||
case CHAIN_COMMAND_BLOCK:
|
case CHAIN_COMMAND_BLOCK:
|
||||||
case REPEATING_COMMAND_BLOCK:
|
case REPEATING_COMMAND_BLOCK:
|
||||||
|
|
||||||
case SIGN:
|
case LEGACY_SIGN:
|
||||||
case WALL_SIGN:
|
case LEGACY_WALL_SIGN:
|
||||||
|
|
||||||
case REDSTONE_TORCH:
|
case REDSTONE_TORCH:
|
||||||
case REDSTONE_WALL_TORCH:
|
case REDSTONE_WALL_TORCH:
|
||||||
|
@ -63,7 +63,6 @@ public final class ReplicatingEntityWrapper extends EntityWrapper {
|
|||||||
this.dataByte = getOrdinal(TreeSpecies.values(), boat.getWoodType());
|
this.dataByte = getOrdinal(TreeSpecies.values(), boat.getWoodType());
|
||||||
return;
|
return;
|
||||||
case ARROW:
|
case ARROW:
|
||||||
case COMPLEX_PART:
|
|
||||||
case EGG:
|
case EGG:
|
||||||
case ENDER_CRYSTAL:
|
case ENDER_CRYSTAL:
|
||||||
case ENDER_PEARL:
|
case ENDER_PEARL:
|
||||||
@ -87,14 +86,11 @@ public final class ReplicatingEntityWrapper extends EntityWrapper {
|
|||||||
case MINECART_FURNACE:
|
case MINECART_FURNACE:
|
||||||
case SPLASH_POTION:
|
case SPLASH_POTION:
|
||||||
case THROWN_EXP_BOTTLE:
|
case THROWN_EXP_BOTTLE:
|
||||||
case WEATHER:
|
|
||||||
case WITHER_SKULL:
|
case WITHER_SKULL:
|
||||||
case UNKNOWN:
|
case UNKNOWN:
|
||||||
case TIPPED_ARROW:
|
|
||||||
case SPECTRAL_ARROW:
|
case SPECTRAL_ARROW:
|
||||||
case SHULKER_BULLET:
|
case SHULKER_BULLET:
|
||||||
case DRAGON_FIREBALL:
|
case DRAGON_FIREBALL:
|
||||||
case LINGERING_POTION:
|
|
||||||
case AREA_EFFECT_CLOUD:
|
case AREA_EFFECT_CLOUD:
|
||||||
case TRIDENT:
|
case TRIDENT:
|
||||||
case LLAMA_SPIT:
|
case LLAMA_SPIT:
|
||||||
@ -164,9 +160,14 @@ public final class ReplicatingEntityWrapper extends EntityWrapper {
|
|||||||
storeLiving((LivingEntity) entity);
|
storeLiving((LivingEntity) entity);
|
||||||
return;
|
return;
|
||||||
// END TAMEABLE //
|
// END TAMEABLE //
|
||||||
|
//todo fix sheep
|
||||||
case SHEEP:
|
case SHEEP:
|
||||||
Sheep sheep = (Sheep) entity;
|
Sheep sheep = (Sheep) entity;
|
||||||
this.dataByte = (byte) (sheep.isSheared() ? 1 : 0);
|
if (sheep.isSheared()) {
|
||||||
|
this.dataByte = (byte) 1;
|
||||||
|
} else {
|
||||||
|
this.dataByte = (byte) 0;
|
||||||
|
}
|
||||||
this.dataByte2 = sheep.getColor().getDyeData();
|
this.dataByte2 = sheep.getColor().getDyeData();
|
||||||
storeAgeable(sheep);
|
storeAgeable(sheep);
|
||||||
storeLiving(sheep);
|
storeLiving(sheep);
|
||||||
@ -324,6 +325,7 @@ public final class ReplicatingEntityWrapper extends EntityWrapper {
|
|||||||
|
|
||||||
void restoreEquipment(LivingEntity entity) {
|
void restoreEquipment(LivingEntity entity) {
|
||||||
EntityEquipment equipment = entity.getEquipment();
|
EntityEquipment equipment = entity.getEquipment();
|
||||||
|
if (equipment != null) {
|
||||||
equipment.setItemInMainHand(this.lived.mainHand);
|
equipment.setItemInMainHand(this.lived.mainHand);
|
||||||
equipment.setItemInOffHand(this.lived.offHand);
|
equipment.setItemInOffHand(this.lived.offHand);
|
||||||
equipment.setHelmet(this.lived.helmet);
|
equipment.setHelmet(this.lived.helmet);
|
||||||
@ -331,6 +333,7 @@ public final class ReplicatingEntityWrapper extends EntityWrapper {
|
|||||||
equipment.setLeggings(this.lived.leggings);
|
equipment.setLeggings(this.lived.leggings);
|
||||||
equipment.setBoots(this.lived.boots);
|
equipment.setBoots(this.lived.boots);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void restoreInventory(InventoryHolder entity) {
|
private void restoreInventory(InventoryHolder entity) {
|
||||||
try {
|
try {
|
||||||
@ -462,7 +465,6 @@ public final class ReplicatingEntityWrapper extends EntityWrapper {
|
|||||||
((Slime) entity).setSize(this.dataByte);
|
((Slime) entity).setSize(this.dataByte);
|
||||||
return entity;
|
return entity;
|
||||||
case ARROW:
|
case ARROW:
|
||||||
case COMPLEX_PART:
|
|
||||||
case EGG:
|
case EGG:
|
||||||
case ENDER_CRYSTAL:
|
case ENDER_CRYSTAL:
|
||||||
case ENDER_PEARL:
|
case ENDER_PEARL:
|
||||||
@ -485,11 +487,8 @@ public final class ReplicatingEntityWrapper extends EntityWrapper {
|
|||||||
case SNOWBALL:
|
case SNOWBALL:
|
||||||
case SPLASH_POTION:
|
case SPLASH_POTION:
|
||||||
case THROWN_EXP_BOTTLE:
|
case THROWN_EXP_BOTTLE:
|
||||||
case WEATHER:
|
|
||||||
case TIPPED_ARROW:
|
|
||||||
case SPECTRAL_ARROW:
|
case SPECTRAL_ARROW:
|
||||||
case SHULKER_BULLET:
|
case SHULKER_BULLET:
|
||||||
case LINGERING_POTION:
|
|
||||||
case AREA_EFFECT_CLOUD:
|
case AREA_EFFECT_CLOUD:
|
||||||
case DRAGON_FIREBALL:
|
case DRAGON_FIREBALL:
|
||||||
case WITHER_SKULL:
|
case WITHER_SKULL:
|
||||||
|
@ -395,9 +395,9 @@ public class BukkitChunkManager extends ChunkManager {
|
|||||||
final boolean safe) {
|
final boolean safe) {
|
||||||
if (!PlotSquared.get().isMainThread(Thread.currentThread())) {
|
if (!PlotSquared.get().isMainThread(Thread.currentThread())) {
|
||||||
TaskManager
|
TaskManager
|
||||||
.runTask(() -> BukkitUtil.getWorld(world).unloadChunk(loc.x, loc.z, save, safe));
|
.runTask(() -> BukkitUtil.getWorld(world).unloadChunk(loc.x, loc.z, save));
|
||||||
} else {
|
} else {
|
||||||
BukkitUtil.getWorld(world).unloadChunk(loc.x, loc.z, save, safe);
|
BukkitUtil.getWorld(world).unloadChunk(loc.x, loc.z, save);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -466,7 +466,6 @@ public class BukkitChunkManager extends ChunkManager {
|
|||||||
case ENDER_PEARL:
|
case ENDER_PEARL:
|
||||||
case ARROW:
|
case ARROW:
|
||||||
case TRIDENT:
|
case TRIDENT:
|
||||||
case TIPPED_ARROW:
|
|
||||||
case SHULKER_BULLET:
|
case SHULKER_BULLET:
|
||||||
case SPECTRAL_ARROW:
|
case SPECTRAL_ARROW:
|
||||||
case DRAGON_FIREBALL:
|
case DRAGON_FIREBALL:
|
||||||
@ -476,18 +475,15 @@ public class BukkitChunkManager extends ChunkManager {
|
|||||||
case FALLING_BLOCK:
|
case FALLING_BLOCK:
|
||||||
// Block entities
|
// Block entities
|
||||||
case ENDER_CRYSTAL:
|
case ENDER_CRYSTAL:
|
||||||
case COMPLEX_PART:
|
|
||||||
case FISHING_HOOK:
|
case FISHING_HOOK:
|
||||||
case ENDER_SIGNAL:
|
case ENDER_SIGNAL:
|
||||||
case EXPERIENCE_ORB:
|
case EXPERIENCE_ORB:
|
||||||
case LEASH_HITCH:
|
case LEASH_HITCH:
|
||||||
case FIREWORK:
|
case FIREWORK:
|
||||||
case WEATHER:
|
|
||||||
case LIGHTNING:
|
case LIGHTNING:
|
||||||
case WITHER_SKULL:
|
case WITHER_SKULL:
|
||||||
case UNKNOWN:
|
case UNKNOWN:
|
||||||
case AREA_EFFECT_CLOUD:
|
case AREA_EFFECT_CLOUD:
|
||||||
case LINGERING_POTION:
|
|
||||||
case EVOKER_FANGS:
|
case EVOKER_FANGS:
|
||||||
// non moving / unremovable
|
// non moving / unremovable
|
||||||
break;
|
break;
|
||||||
@ -534,6 +530,9 @@ public class BukkitChunkManager extends ChunkManager {
|
|||||||
case SALMON:
|
case SALMON:
|
||||||
case PUFFERFISH:
|
case PUFFERFISH:
|
||||||
case TROPICAL_FISH:
|
case TROPICAL_FISH:
|
||||||
|
case CAT:
|
||||||
|
case FOX:
|
||||||
|
case PANDA:
|
||||||
// animal
|
// animal
|
||||||
count[3]++;
|
count[3]++;
|
||||||
count[1]++;
|
count[1]++;
|
||||||
|
@ -304,7 +304,7 @@ public class BukkitHybridUtils extends HybridUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
worldObj.unloadChunkRequest(X, Z, true);
|
worldObj.unloadChunkRequest(X, Z);
|
||||||
}
|
}
|
||||||
}, () -> TaskManager.runTaskAsync(run), 5);
|
}, () -> TaskManager.runTaskAsync(run), 5);
|
||||||
});
|
});
|
||||||
|
@ -61,11 +61,11 @@ public class BukkitSetupUtils extends SetupUtils {
|
|||||||
}
|
}
|
||||||
if (save) {
|
if (save) {
|
||||||
for (Chunk chunk : world.getLoadedChunks()) {
|
for (Chunk chunk : world.getLoadedChunks()) {
|
||||||
chunk.unload(true, false);
|
chunk.unload(true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (Chunk chunk : world.getLoadedChunks()) {
|
for (Chunk chunk : world.getLoadedChunks()) {
|
||||||
chunk.unload(false, false);
|
chunk.unload(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Bukkit.unloadWorld(world, false);
|
Bukkit.unloadWorld(world, false);
|
||||||
|
@ -331,7 +331,7 @@ import java.util.*;
|
|||||||
final Block block = world.getBlockAt(x, y, z);
|
final Block block = world.getBlockAt(x, y, z);
|
||||||
// block.setType(Material.AIR);
|
// block.setType(Material.AIR);
|
||||||
final Material type = block.getType();
|
final Material type = block.getType();
|
||||||
if (type != Material.SIGN && type != Material.WALL_SIGN) {
|
if (type != Material.LEGACY_SIGN && type != Material.LEGACY_WALL_SIGN) {
|
||||||
BlockFace facing = BlockFace.EAST;
|
BlockFace facing = BlockFace.EAST;
|
||||||
if (world.getBlockAt(x, y, z + 1).getType().isSolid()) {
|
if (world.getBlockAt(x, y, z + 1).getType().isSolid()) {
|
||||||
facing = BlockFace.NORTH;
|
facing = BlockFace.NORTH;
|
||||||
@ -340,7 +340,7 @@ import java.util.*;
|
|||||||
} else if (world.getBlockAt(x, y, z - 1).getType().isSolid()) {
|
} else if (world.getBlockAt(x, y, z - 1).getType().isSolid()) {
|
||||||
facing = BlockFace.SOUTH;
|
facing = BlockFace.SOUTH;
|
||||||
}
|
}
|
||||||
block.setType(Material.WALL_SIGN, false);
|
block.setType(Material.LEGACY_WALL_SIGN, false);
|
||||||
final WallSign sign = (WallSign) block.getBlockData();
|
final WallSign sign = (WallSign) block.getBlockData();
|
||||||
sign.setFacing(facing);
|
sign.setFacing(facing);
|
||||||
block.setBlockData(sign, false);
|
block.setBlockData(sign, false);
|
||||||
|
@ -116,7 +116,7 @@ public class SendChunk {
|
|||||||
for (final Chunk chunk : chunks) {
|
for (final Chunk chunk : chunks) {
|
||||||
TaskManager.runTask(() -> {
|
TaskManager.runTask(() -> {
|
||||||
try {
|
try {
|
||||||
chunk.unload(true, false);
|
chunk.unload(true);
|
||||||
} catch (Throwable ignored) {
|
} catch (Throwable ignored) {
|
||||||
String worldName = chunk.getWorld().getName();
|
String worldName = chunk.getWorld().getName();
|
||||||
PlotSquared.debug(
|
PlotSquared.debug(
|
||||||
|
Loading…
Reference in New Issue
Block a user