Skip to content

Commit

Permalink
Temp fix : #40
Browse files Browse the repository at this point in the history
  • Loading branch information
Euphillya committed May 23, 2024
1 parent c88c56e commit 0c1e0c0
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions nms/v1_19_R2/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("java")
id("io.papermc.paperweight.userdev") version "1.7.1" // Check for new versions at https://plugins.gradle.org/plugin/io.papermc.paperweight.userdev
id("io.papermc.paperweight.userdev")
}

dependencies {
Expand All @@ -14,7 +14,6 @@ tasks {
}
compileJava {
options.encoding = "UTF-8"
options.release = 17
}
}

Expand Down
2 changes: 1 addition & 1 deletion nms/v1_19_R3/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("java")
id("io.papermc.paperweight.userdev") version "1.7.1" // Check for new versions at https://plugins.gradle.org/plugin/io.papermc.paperweight.userdev
id("io.papermc.paperweight.userdev")
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion nms/v1_20_R1/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("java")
id("io.papermc.paperweight.userdev") version "1.7.1" // Check for new versions at https://plugins.gradle.org/plugin/io.papermc.paperweight.userdev
id("io.papermc.paperweight.userdev")
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion nms/v1_20_R2/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("java")
id("io.papermc.paperweight.userdev") version "1.7.1" // Check for new versions at https://plugins.gradle.org/plugin/io.papermc.paperweight.userdev
id("io.papermc.paperweight.userdev")
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion nms/v1_20_R3/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("java")
id("io.papermc.paperweight.userdev") version "1.7.1" // Check for new versions at https://plugins.gradle.org/plugin/io.papermc.paperweight.userdev
id("io.papermc.paperweight.userdev")
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion nms/v1_20_R4/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("java")
id("io.papermc.paperweight.userdev") version "1.7.1" // Check for new versions at https://plugins.gradle.org/plugin/io.papermc.paperweight.userdev
id("io.papermc.paperweight.userdev")
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public WorldFeedback.FeedbackWorld createWorld(WorldCreator creator) {

// Paper start - fix and optimise world upgrading
if (console.options.has("forceUpgrade")) {
net.minecraft.server.Main.convertWorldButItWorks(actualDimension, worldSession, DataFixers.getDataFixer(), iregistrycustom_dimension, worlddimension.generator().getTypeNameForDataFixer(), console.options.has("eraseCache"), console.options.has("recreateRegionFiles"));
net.minecraft.server.Main.forceUpgrade(worldSession, DataFixers.getDataFixer(), console.options.has("eraseCache"), () -> true, iregistrycustom_dimension, console.options.has("recreateRegionFiles"));
}
// Paper end - fix and optimise world upgrading
ResourceKey<net.minecraft.world.level.Level> worldKey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void onPlayerInsidePortal(final EntityInsideBlockEvent event) {
Block block = event.getBlock();
World world = block.getWorld();
if (!SkylliaAPI.isWorldSkyblock(world)) return;
event.setCancelled(true);
//event.setCancelled(true); Todo ? Je ne sais plus pourquoi il est là
Material blockType = block.getType();
switch (blockType) {
case NETHER_PORTAL -> {
Expand Down

0 comments on commit 0c1e0c0

Please sign in to comment.