geforkt von Mirrors/FastAsyncWorldEdit
Implement missing methods
Dieser Commit ist enthalten in:
Ursprung
cde52f9f35
Commit
6476345e44
@ -162,6 +162,11 @@ public class AsyncBlock implements Block {
|
||||
return z;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isValidTool(@Nonnull ItemStack itemStack) {
|
||||
return getDrops(itemStack).size() !=0;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public Location getLocation() {
|
||||
|
@ -26,6 +26,7 @@ import org.bukkit.GameRule;
|
||||
import org.bukkit.HeightMap;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.NamespacedKey;
|
||||
import org.bukkit.Particle;
|
||||
import org.bukkit.Raid;
|
||||
import org.bukkit.Sound;
|
||||
@ -1406,6 +1407,12 @@ public class AsyncWorld extends PassthroughExtent implements World {
|
||||
return parent.getChunkAtAsync(x, z, gen, urgent);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public NamespacedKey getKey() {
|
||||
throw new UnsupportedOperationException("FAWE does not support this yet");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDayTime() {
|
||||
return parent.isDayTime();
|
||||
|
@ -108,7 +108,7 @@ class FileSystemSnapshotDatabaseTest {
|
||||
reader.close();
|
||||
}
|
||||
|
||||
TEMP_DIR = Files.createTempDirectory("worldedit-fs-snap-dbs");
|
||||
TEMP_DIR = Files.createTempDirectory("worldedit-fs-snap-dbs").toRealPath();
|
||||
}
|
||||
|
||||
@AfterAll
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren