Show a message with install instructions when running the jar file

Co-Authored-By: Matthew Miller <mnmiller1@me.com>
This commit is contained in:
NotMyFault
2021-02-25 22:58:17 +01:00
parent bc686a611d
commit 0b65533294
9 changed files with 160 additions and 15 deletions

View File

@ -147,6 +147,8 @@ tasks.named<Jar>("jar") {
}
}
addJarManifest(WorldEditKind.Plugin, includeClasspath = true)
tasks.named<ShadowJar>("shadowJar") {
from(zipTree("src/main/resources/worldedit-adapters.jar").matching {
exclude("META-INF/")

View File

@ -249,7 +249,7 @@ public class BukkitWorld extends AbstractWorld {
@Override
public boolean clearContainerBlockContents(BlockVector3 pt) {
checkNotNull(pt);
if (getBlock(pt).getBlockType().getMaterial().hasContainer()) {
if (!getBlock(pt).getBlockType().getMaterial().hasContainer()) {
return false;
}
Block block = getWorld().getBlockAt(pt.getBlockX(), pt.getBlockY(), pt.getBlockZ());