diff --git a/README.md b/README.md index 8cc644a061..2d13f58dcd 100644 --- a/README.md +++ b/README.md @@ -84,3 +84,8 @@ YourKit supports open source projects with innovative and intelligent tools for YourKit is the creator of [YourKit Java Profiler](https://www.yourkit.com/java/profiler/), [YourKit .NET Profiler](https://www.yourkit.com/.net/profiler/), and [YourKit YouMonitor](https://www.yourkit.com/youmonitor/). + +# Folia Inquisitors +[Folia-Inquisitors](https://github.com/orgs/Folia-Inquisitors/repositories) +[TechnicallyCoded](https://github.com/TechnicallyCoded) +[Yomamaeatstoes](https://github.com/Yomamaeatstoes) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java index 6f94aa6886..3b7491f8cd 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java @@ -480,25 +480,9 @@ public com.sk89q.worldedit.world.block.BlockState getBlock(BlockVector3 position @Override public > boolean setBlock(BlockVector3 position, B block, SideEffectSet sideEffects) { clearContainerBlockContents(position); - if (worldNativeAccess != null) { - try { - return worldNativeAccess.setBlock(position, block, sideEffects); - } catch (Exception e) { - if (block instanceof BaseBlock baseBlock && baseBlock.getNbt() != null) { - LOGGER.warn("Tried to set a corrupt tile entity at " + position.toString() - + ": " + baseBlock.getNbt(), e); - } else { - LOGGER.warn("Failed to set block via adapter, falling back to generic", e); - } - } - } - if (WorldEditPlugin.getInstance().getLocalConfiguration().unsupportedVersionEditing) { - Block bukkitBlock = getWorld().getBlockAt(position.x(), position.y(), position.z()); - bukkitBlock.setBlockData(BukkitAdapter.adapt(block), sideEffects.doesApplyAny()); - return true; - } else { - throw new RuntimeException(new UnsupportedVersionEditException()); - } + Block bukkitBlock = getWorld().getBlockAt(position.getBlockX(), position.getBlockY(), position.getBlockZ()); + bukkitBlock.setBlockData(BukkitAdapter.adapt(block), sideEffects.doesApplyAny()); + return true; } @Override diff --git a/worldedit-bukkit/src/main/resources/plugin.yml b/worldedit-bukkit/src/main/resources/plugin.yml index aa19044bb0..49e998ab43 100644 --- a/worldedit-bukkit/src/main/resources/plugin.yml +++ b/worldedit-bukkit/src/main/resources/plugin.yml @@ -5,4 +5,5 @@ load: STARTUP api-version: 1.13 softdepend: [Vault] author: EngineHub +folia-supported: true website: https://enginehub.org/worldedit \ No newline at end of file