1
0
mirror of https://github.com/EngineHub/WorldGuard.git synced 2025-01-07 08:57:34 +01:00

Fix compilation for MC 1.21. Nothing tested yet.

This commit is contained in:
wizjany 2024-06-16 21:48:35 -04:00
parent ead1e1b77c
commit 27f009594a
No known key found for this signature in database
GPG Key ID: 1DB5861C03B76B5E
3 changed files with 3 additions and 4 deletions
worldguard-bukkit
build.gradle.kts
src/main
java/com/sk89q/worldguard/bukkit/util
resources

View File

@ -20,8 +20,8 @@
dependencies { dependencies {
"api"(project(":worldguard-core")) "api"(project(":worldguard-core"))
"compileOnly"("io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT") "compileOnly"("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")
"runtimeOnly"("org.spigotmc:spigot-api:1.20.6-R0.1-SNAPSHOT") { "runtimeOnly"("org.spigotmc:spigot-api:1.21-R0.1-SNAPSHOT") {
exclude("junit", "junit") exclude("junit", "junit")
} }
"api"("com.sk89q.worldedit:worldedit-bukkit:${Versions.WORLDEDIT}") { isTransitive = false } "api"("com.sk89q.worldedit:worldedit-bukkit:${Versions.WORLDEDIT}") { isTransitive = false }

View File

@ -864,7 +864,6 @@ private static void putMaterialTag(Tag<Material> tag, Integer value) {
putMaterialTag(Tag.ALL_SIGNS, 0); putMaterialTag(Tag.ALL_SIGNS, 0);
putMaterialTag(Tag.SMALL_FLOWERS, 0); putMaterialTag(Tag.SMALL_FLOWERS, 0);
putMaterialTag(Tag.BEDS, MODIFIED_ON_RIGHT); putMaterialTag(Tag.BEDS, MODIFIED_ON_RIGHT);
putMaterialTag(Tag.ITEMS_MUSIC_DISCS, 0);
putMaterialTag(Tag.ITEMS_BANNERS, 0); putMaterialTag(Tag.ITEMS_BANNERS, 0);
putMaterialTag(Tag.FENCE_GATES, MODIFIED_ON_RIGHT); putMaterialTag(Tag.FENCE_GATES, MODIFIED_ON_RIGHT);
putMaterialTag(Tag.FENCES, 0); putMaterialTag(Tag.FENCES, 0);

View File

@ -3,4 +3,4 @@ main: com.sk89q.worldguard.bukkit.WorldGuardPlugin
version: "${internalVersion}" version: "${internalVersion}"
depend: [WorldEdit] depend: [WorldEdit]
softdepend: [CommandBook] softdepend: [CommandBook]
api-version: "1.20" api-version: "1.21"