geforkt von Mirrors/Paper
Updated Upstream (Bukkit/CraftBukkit)
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 0c5d8709 SPIGOT-7400: Downgrade maven-resolver due to issues resolving certain depends 255c4fdb SPIGOT-7380: Add PlayerInteractEvent#getClickedPosition and ChiseledBookshelf#getSlot CraftBukkit Changes: b6b514b7e SPIGOT-7400: Downgrade maven-resolver due to issues resolving certain depends fcff84de9 SPIGOT-7399: Revert null check in CraftMetaItem#safelyAdd 44a4b5649 SPIGOT-7380: Add PlayerInteractEvent#getClickedPosition and ChiseledBookshelf#getSlot 676969d01 SPIGOT-7389: Handle setting null items in ChiseledBookshelf Inventory
Dieser Commit ist enthalten in:
Ursprung
fb0fd871fe
Commit
fb00916689
@ -16,38 +16,16 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
@@ -0,0 +0,0 @@ public class PlayerInteractEvent extends PlayerEvent implements Cancellable {
|
@@ -0,0 +0,0 @@ public class PlayerInteractEvent extends PlayerEvent implements Cancellable {
|
||||||
private Result useClickedBlock;
|
* <p>
|
||||||
private Result useItemInHand;
|
* All vector components are between 0.0 and 1.0 inclusive.
|
||||||
private EquipmentSlot hand;
|
*
|
||||||
+ private Location interactionPoint; // Paper
|
+ * @deprecated misleading, use {@link #getInteractionPoint()}
|
||||||
|
* @return the clicked position. May be null.
|
||||||
public PlayerInteractEvent(@NotNull final Player who, @NotNull final Action action, @Nullable final ItemStack item, @Nullable final Block clickedBlock, @NotNull final BlockFace clickedFace) {
|
*/
|
||||||
this(who, action, item, clickedBlock, clickedFace, EquipmentSlot.HAND);
|
@Nullable
|
||||||
}
|
+ @Deprecated // Paper
|
||||||
|
public Vector getClickedPosition() {
|
||||||
public PlayerInteractEvent(@NotNull final Player who, @NotNull final Action action, @Nullable final ItemStack item, @Nullable final Block clickedBlock, @NotNull final BlockFace clickedFace, @Nullable final EquipmentSlot hand) {
|
return clickedPosistion;
|
||||||
+ // Paper start - Add interactionPoint
|
|
||||||
+ this(who, action, item, clickedBlock, clickedFace, hand, null);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ public PlayerInteractEvent(@NotNull final Player who, @NotNull final Action action, @Nullable final ItemStack item, @Nullable final Block clickedBlock, @NotNull final BlockFace clickedFace, @Nullable final EquipmentSlot hand, @Nullable final Location interactionPoint) {
|
|
||||||
super(who);
|
|
||||||
this.action = action;
|
|
||||||
this.item = item;
|
|
||||||
this.blockClicked = clickedBlock;
|
|
||||||
this.blockFace = clickedFace;
|
|
||||||
this.hand = hand;
|
|
||||||
+ this.interactionPoint = interactionPoint;
|
|
||||||
|
|
||||||
useItemInHand = Result.DEFAULT;
|
|
||||||
useClickedBlock = clickedBlock == null ? Result.DENY : Result.ALLOW;
|
|
||||||
}
|
|
||||||
+ // Paper end
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the action type
|
|
||||||
@@ -0,0 +0,0 @@ public class PlayerInteractEvent extends PlayerEvent implements Cancellable {
|
|
||||||
return hand;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
@ -58,7 +36,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ */
|
+ */
|
||||||
+ @Nullable
|
+ @Nullable
|
||||||
+ public Location getInteractionPoint() {
|
+ public Location getInteractionPoint() {
|
||||||
+ return interactionPoint;
|
+ if (this.blockClicked == null || this.clickedPosistion == null) {
|
||||||
|
+ return null;
|
||||||
|
+ }
|
||||||
|
+ return this.blockClicked.getLocation().add(this.clickedPosistion);
|
||||||
+ }
|
+ }
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
+
|
+
|
||||||
|
@ -16,4 +16,4 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ api("it.unimi.dsi:fastutil:8.5.6")
|
+ api("it.unimi.dsi:fastutil:8.5.6")
|
||||||
// Paper end
|
// Paper end
|
||||||
|
|
||||||
compileOnly("org.apache.maven:maven-resolver-provider:3.9.2")
|
compileOnly("org.apache.maven:maven-resolver-provider:3.8.5")
|
||||||
|
@ -51,7 +51,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ apiAndDocs("net.kyori:adventure-text-logger-slf4j")
|
+ apiAndDocs("net.kyori:adventure-text-logger-slf4j")
|
||||||
// Paper end
|
// Paper end
|
||||||
|
|
||||||
compileOnly("org.apache.maven:maven-resolver-provider:3.9.2")
|
compileOnly("org.apache.maven:maven-resolver-provider:3.8.5")
|
||||||
@@ -0,0 +0,0 @@ tasks.withType<Javadoc> {
|
@@ -0,0 +0,0 @@ tasks.withType<Javadoc> {
|
||||||
"https://guava.dev/releases/31.1-jre/api/docs/",
|
"https://guava.dev/releases/31.1-jre/api/docs/",
|
||||||
"https://javadoc.io/doc/org.yaml/snakeyaml/2.0/",
|
"https://javadoc.io/doc/org.yaml/snakeyaml/2.0/",
|
||||||
|
@ -18,9 +18,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ }
|
+ }
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
|
|
||||||
compileOnly("org.apache.maven:maven-resolver-provider:3.9.2")
|
compileOnly("org.apache.maven:maven-resolver-provider:3.8.5")
|
||||||
compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.9.10")
|
compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.7.3")
|
||||||
compileOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.9.10")
|
compileOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.7.3")
|
||||||
+ compileOnly("com.google.code.findbugs:jsr305:1.3.9") // Paper
|
+ compileOnly("com.google.code.findbugs:jsr305:1.3.9") // Paper
|
||||||
|
|
||||||
- val annotations = "org.jetbrains:annotations-java5:$annotationsVersion"
|
- val annotations = "org.jetbrains:annotations-java5:$annotationsVersion"
|
||||||
|
@ -51,9 +51,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ api("org.yaml:snakeyaml:2.0")
|
+ api("org.yaml:snakeyaml:2.0")
|
||||||
+ api("org.joml:joml:1.10.5")
|
+ api("org.joml:joml:1.10.5")
|
||||||
+
|
+
|
||||||
+ compileOnly("org.apache.maven:maven-resolver-provider:3.9.2")
|
+ compileOnly("org.apache.maven:maven-resolver-provider:3.8.5")
|
||||||
+ compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.9.10")
|
+ compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.7.3")
|
||||||
+ compileOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.9.10")
|
+ compileOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.7.3")
|
||||||
+
|
+
|
||||||
+ val annotations = "org.jetbrains:annotations-java5:$annotationsVersion"
|
+ val annotations = "org.jetbrains:annotations-java5:$annotationsVersion"
|
||||||
+ compileOnly(annotations)
|
+ compileOnly(annotations)
|
||||||
@ -193,19 +193,19 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>org.apache.maven</groupId>
|
- <groupId>org.apache.maven</groupId>
|
||||||
- <artifactId>maven-resolver-provider</artifactId>
|
- <artifactId>maven-resolver-provider</artifactId>
|
||||||
- <version>3.9.2</version>
|
- <version>3.8.5</version>
|
||||||
- <scope>provided</scope>
|
- <scope>provided</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>org.apache.maven.resolver</groupId>
|
- <groupId>org.apache.maven.resolver</groupId>
|
||||||
- <artifactId>maven-resolver-connector-basic</artifactId>
|
- <artifactId>maven-resolver-connector-basic</artifactId>
|
||||||
- <version>1.9.10</version>
|
- <version>1.7.3</version>
|
||||||
- <scope>provided</scope>
|
- <scope>provided</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>org.apache.maven.resolver</groupId>
|
- <groupId>org.apache.maven.resolver</groupId>
|
||||||
- <artifactId>maven-resolver-transport-http</artifactId>
|
- <artifactId>maven-resolver-transport-http</artifactId>
|
||||||
- <version>1.9.10</version>
|
- <version>1.7.3</version>
|
||||||
- <scope>provided</scope>
|
- <scope>provided</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <!-- annotations -->
|
- <!-- annotations -->
|
||||||
|
@ -12,10 +12,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
implementation("org.ow2.asm:asm-commons:9.4")
|
implementation("org.ow2.asm:asm-commons:9.4")
|
||||||
// Paper end
|
// Paper end
|
||||||
|
|
||||||
- compileOnly("org.apache.maven:maven-resolver-provider:3.9.2")
|
- compileOnly("org.apache.maven:maven-resolver-provider:3.8.5")
|
||||||
+ api("org.apache.maven:maven-resolver-provider:3.9.2")
|
+ api("org.apache.maven:maven-resolver-provider:3.8.5")
|
||||||
compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.9.10")
|
compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.7.3")
|
||||||
compileOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.9.10")
|
compileOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.7.3")
|
||||||
compileOnly("com.google.code.findbugs:jsr305:1.3.9") // Paper
|
compileOnly("com.google.code.findbugs:jsr305:1.3.9") // Paper
|
||||||
diff --git a/src/main/java/io/papermc/paper/plugin/PermissionManager.java b/src/main/java/io/papermc/paper/plugin/PermissionManager.java
|
diff --git a/src/main/java/io/papermc/paper/plugin/PermissionManager.java b/src/main/java/io/papermc/paper/plugin/PermissionManager.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
|
@ -18,7 +18,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ implementation("org.ow2.asm:asm-commons:9.4")
|
+ implementation("org.ow2.asm:asm-commons:9.4")
|
||||||
// Paper end
|
// Paper end
|
||||||
|
|
||||||
compileOnly("org.apache.maven:maven-resolver-provider:3.9.2")
|
compileOnly("org.apache.maven:maven-resolver-provider:3.8.5")
|
||||||
diff --git a/src/main/java/com/destroystokyo/paper/event/executor/MethodHandleEventExecutor.java b/src/main/java/com/destroystokyo/paper/event/executor/MethodHandleEventExecutor.java
|
diff --git a/src/main/java/com/destroystokyo/paper/event/executor/MethodHandleEventExecutor.java b/src/main/java/com/destroystokyo/paper/event/executor/MethodHandleEventExecutor.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
|
||||||
|
@ -24,7 +24,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ cancelledItem = true; // Paper - correctly handle items on cooldown
|
+ cancelledItem = true; // Paper - correctly handle items on cooldown
|
||||||
}
|
}
|
||||||
|
|
||||||
- PlayerInteractEvent event = CraftEventFactory.callPlayerInteractEvent(player, Action.RIGHT_CLICK_BLOCK, blockposition, hitResult.getDirection(), stack, cancelledBlock, hand, hitResult.getLocation()); // Paper
|
- PlayerInteractEvent event = CraftEventFactory.callPlayerInteractEvent(player, Action.RIGHT_CLICK_BLOCK, blockposition, hitResult.getDirection(), stack, cancelledBlock, hand, hitResult.getLocation());
|
||||||
+ PlayerInteractEvent event = CraftEventFactory.callPlayerInteractEvent(player, Action.RIGHT_CLICK_BLOCK, blockposition, hitResult.getDirection(), stack, cancelledBlock, cancelledItem, hand, hitResult.getLocation()); // Paper
|
+ PlayerInteractEvent event = CraftEventFactory.callPlayerInteractEvent(player, Action.RIGHT_CLICK_BLOCK, blockposition, hitResult.getDirection(), stack, cancelledBlock, cancelledItem, hand, hitResult.getLocation()); // Paper
|
||||||
this.firedInteract = true;
|
this.firedInteract = true;
|
||||||
this.interactResult = event.useItemInHand() == Event.Result.DENY;
|
this.interactResult = event.useItemInHand() == Event.Result.DENY;
|
||||||
@ -34,18 +34,19 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
||||||
+++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
+++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
||||||
@@ -0,0 +0,0 @@ public class CraftEventFactory {
|
@@ -0,0 +0,0 @@ public class CraftEventFactory {
|
||||||
|
return CraftEventFactory.callPlayerInteractEvent(who, action, position, direction, itemstack, false, hand, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static PlayerInteractEvent callPlayerInteractEvent(net.minecraft.world.entity.player.Player who, Action action, BlockPos position, Direction direction, ItemStack itemstack, boolean cancelledBlock, InteractionHand hand, Vec3 hitVec) {
|
|
||||||
+ // Paper start - correctly handle items on cooldown
|
|
||||||
+ return callPlayerInteractEvent(who, action, position, direction, itemstack, cancelledBlock, false, hand, hitVec);
|
|
||||||
+ }
|
|
||||||
+
|
+
|
||||||
+ public static PlayerInteractEvent callPlayerInteractEvent(net.minecraft.world.entity.player.Player who, Action action, BlockPos position, Direction direction, ItemStack itemstack, boolean cancelledBlock, boolean cancelledItem, InteractionHand hand, Vec3 hitVec) {
|
+ // Paper start - cancelledItem param
|
||||||
+ // Paper end - correctly handle items on cooldown
|
public static PlayerInteractEvent callPlayerInteractEvent(net.minecraft.world.entity.player.Player who, Action action, BlockPos position, Direction direction, ItemStack itemstack, boolean cancelledBlock, InteractionHand hand, Vec3 targetPos) {
|
||||||
// Paper end
|
+ return CraftEventFactory.callPlayerInteractEvent(who, action, position, direction, itemstack, false, false, hand, null);
|
||||||
|
+ }
|
||||||
|
+ public static PlayerInteractEvent callPlayerInteractEvent(net.minecraft.world.entity.player.Player who, Action action, BlockPos position, Direction direction, ItemStack itemstack, boolean cancelledBlock, boolean cancelledItem, InteractionHand hand, Vec3 targetPos) {
|
||||||
|
+ // Paper end - cancelledItem param
|
||||||
Player player = (who == null) ? null : (Player) who.getBukkitEntity();
|
Player player = (who == null) ? null : (Player) who.getBukkitEntity();
|
||||||
CraftItemStack itemInHand = CraftItemStack.asCraftMirror(itemstack);
|
CraftItemStack itemInHand = CraftItemStack.asCraftMirror(itemstack);
|
||||||
|
|
||||||
@@ -0,0 +0,0 @@ public class CraftEventFactory {
|
@@ -0,0 +0,0 @@ public class CraftEventFactory {
|
||||||
if (cancelledBlock) {
|
if (cancelledBlock) {
|
||||||
event.setUseInteractedBlock(Event.Result.DENY);
|
event.setUseInteractedBlock(Event.Result.DENY);
|
||||||
|
@ -1,59 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Madeline Miller <mnmiller1@me.com>
|
|
||||||
Date: Mon, 4 Jan 2021 16:40:27 +1000
|
|
||||||
Subject: [PATCH] Implement API to expose exact interaction point
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/level/ServerPlayerGameMode.java b/src/main/java/net/minecraft/server/level/ServerPlayerGameMode.java
|
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
||||||
--- a/src/main/java/net/minecraft/server/level/ServerPlayerGameMode.java
|
|
||||||
+++ b/src/main/java/net/minecraft/server/level/ServerPlayerGameMode.java
|
|
||||||
@@ -0,0 +0,0 @@ public class ServerPlayerGameMode {
|
|
||||||
cancelledBlock = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
- PlayerInteractEvent event = CraftEventFactory.callPlayerInteractEvent(player, Action.RIGHT_CLICK_BLOCK, blockposition, hitResult.getDirection(), stack, cancelledBlock, hand);
|
|
||||||
+ PlayerInteractEvent event = CraftEventFactory.callPlayerInteractEvent(player, Action.RIGHT_CLICK_BLOCK, blockposition, hitResult.getDirection(), stack, cancelledBlock, hand, hitResult.getLocation()); // Paper
|
|
||||||
this.firedInteract = true;
|
|
||||||
this.interactResult = event.useItemInHand() == Event.Result.DENY;
|
|
||||||
this.interactPosition = blockposition.immutable();
|
|
||||||
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
||||||
--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
|
||||||
+++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
|
||||||
@@ -0,0 +0,0 @@ import net.minecraft.world.level.storage.loot.parameters.LootContextParams;
|
|
||||||
import net.minecraft.world.phys.BlockHitResult;
|
|
||||||
import net.minecraft.world.phys.EntityHitResult;
|
|
||||||
import net.minecraft.world.phys.HitResult;
|
|
||||||
+import net.minecraft.world.phys.Vec3;
|
|
||||||
import org.bukkit.Bukkit;
|
|
||||||
+import org.bukkit.Location; // Paper
|
|
||||||
import org.bukkit.Material;
|
|
||||||
import org.bukkit.NamespacedKey;
|
|
||||||
import org.bukkit.Server;
|
|
||||||
@@ -0,0 +0,0 @@ public class CraftEventFactory {
|
|
||||||
return CraftEventFactory.callPlayerInteractEvent(who, action, position, direction, itemstack, false, hand);
|
|
||||||
}
|
|
||||||
|
|
||||||
+ // Paper start - Add interactionPoint
|
|
||||||
public static PlayerInteractEvent callPlayerInteractEvent(net.minecraft.world.entity.player.Player who, Action action, BlockPos position, Direction direction, ItemStack itemstack, boolean cancelledBlock, InteractionHand hand) {
|
|
||||||
+ return callPlayerInteractEvent(who, action, position, direction, itemstack, cancelledBlock, hand, null);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ public static PlayerInteractEvent callPlayerInteractEvent(net.minecraft.world.entity.player.Player who, Action action, BlockPos position, Direction direction, ItemStack itemstack, boolean cancelledBlock, InteractionHand hand, Vec3 hitVec) {
|
|
||||||
+ // Paper end
|
|
||||||
Player player = (who == null) ? null : (Player) who.getBukkitEntity();
|
|
||||||
CraftItemStack itemInHand = CraftItemStack.asCraftMirror(itemstack);
|
|
||||||
|
|
||||||
@@ -0,0 +0,0 @@ public class CraftEventFactory {
|
|
||||||
itemInHand = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
- PlayerInteractEvent event = new PlayerInteractEvent(player, action, itemInHand, blockClicked, blockFace, (hand == null) ? null : ((hand == InteractionHand.OFF_HAND) ? EquipmentSlot.OFF_HAND : EquipmentSlot.HAND));
|
|
||||||
+ // Paper start
|
|
||||||
+ Location interactionPoint = hitVec == null ? null : new Location(craftWorld, hitVec.x, hitVec.y, hitVec.z);
|
|
||||||
+ PlayerInteractEvent event = new PlayerInteractEvent(player, action, itemInHand, blockClicked, blockFace, (hand == null) ? null : ((hand == InteractionHand.OFF_HAND) ? EquipmentSlot.OFF_HAND : EquipmentSlot.HAND), interactionPoint);
|
|
||||||
+ // Paper end
|
|
||||||
if (cancelledBlock) {
|
|
||||||
event.setUseInteractedBlock(Event.Result.DENY);
|
|
||||||
}
|
|
@ -9,8 +9,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
--- a/build.gradle.kts
|
--- a/build.gradle.kts
|
||||||
+++ b/build.gradle.kts
|
+++ b/build.gradle.kts
|
||||||
@@ -0,0 +0,0 @@ dependencies {
|
@@ -0,0 +0,0 @@ dependencies {
|
||||||
runtimeOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.9.10")
|
runtimeOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.7.3")
|
||||||
runtimeOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.9.10")
|
runtimeOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.7.3")
|
||||||
|
|
||||||
+ testImplementation("io.github.classgraph:classgraph:4.8.47") // Paper - mob goal test
|
+ testImplementation("io.github.classgraph:classgraph:4.8.47") // Paper - mob goal test
|
||||||
testImplementation("junit:junit:4.13.2")
|
testImplementation("junit:junit:4.13.2")
|
||||||
|
@ -51,9 +51,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ runtimeOnly("org.xerial:sqlite-jdbc:3.42.0.0")
|
+ runtimeOnly("org.xerial:sqlite-jdbc:3.42.0.0")
|
||||||
+ runtimeOnly("com.mysql:mysql-connector-j:8.0.33")
|
+ runtimeOnly("com.mysql:mysql-connector-j:8.0.33")
|
||||||
+
|
+
|
||||||
+ runtimeOnly("org.apache.maven:maven-resolver-provider:3.9.2")
|
+ runtimeOnly("org.apache.maven:maven-resolver-provider:3.8.5")
|
||||||
+ runtimeOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.9.10")
|
+ runtimeOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.7.3")
|
||||||
+ runtimeOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.9.10")
|
+ runtimeOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.7.3")
|
||||||
+
|
+
|
||||||
+ testImplementation("junit:junit:4.13.2")
|
+ testImplementation("junit:junit:4.13.2")
|
||||||
+ testImplementation("org.hamcrest:hamcrest-library:1.3")
|
+ testImplementation("org.hamcrest:hamcrest-library:1.3")
|
||||||
@ -419,19 +419,19 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>org.apache.maven</groupId>
|
- <groupId>org.apache.maven</groupId>
|
||||||
- <artifactId>maven-resolver-provider</artifactId>
|
- <artifactId>maven-resolver-provider</artifactId>
|
||||||
- <version>3.9.2</version>
|
- <version>3.8.5</version>
|
||||||
- <scope>runtime</scope>
|
- <scope>runtime</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>org.apache.maven.resolver</groupId>
|
- <groupId>org.apache.maven.resolver</groupId>
|
||||||
- <artifactId>maven-resolver-connector-basic</artifactId>
|
- <artifactId>maven-resolver-connector-basic</artifactId>
|
||||||
- <version>1.9.10</version>
|
- <version>1.7.3</version>
|
||||||
- <scope>runtime</scope>
|
- <scope>runtime</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>org.apache.maven.resolver</groupId>
|
- <groupId>org.apache.maven.resolver</groupId>
|
||||||
- <artifactId>maven-resolver-transport-http</artifactId>
|
- <artifactId>maven-resolver-transport-http</artifactId>
|
||||||
- <version>1.9.10</version>
|
- <version>1.7.3</version>
|
||||||
- <scope>runtime</scope>
|
- <scope>runtime</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <!-- annotations -->
|
- <!-- annotations -->
|
||||||
|
@ -79,5 +79,5 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ } else
|
+ } else
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
if (!(object instanceof String)) {
|
if (!(object instanceof String)) {
|
||||||
Preconditions.checkArgument(object == null, "%s cannot contain non-string %s", addFrom, object.getClass().getName());
|
if (object != null) {
|
||||||
|
// SPIGOT-7399: Null check via if is important,
|
||||||
|
@ -14,8 +14,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
runtimeOnly("com.mysql:mysql-connector-j:8.0.33")
|
runtimeOnly("com.mysql:mysql-connector-j:8.0.33")
|
||||||
+ runtimeOnly("com.lmax:disruptor:3.4.4") // Paper
|
+ runtimeOnly("com.lmax:disruptor:3.4.4") // Paper
|
||||||
|
|
||||||
runtimeOnly("org.apache.maven:maven-resolver-provider:3.9.2")
|
runtimeOnly("org.apache.maven:maven-resolver-provider:3.8.5")
|
||||||
runtimeOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.9.10")
|
runtimeOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.7.3")
|
||||||
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml
|
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/resources/log4j2.xml
|
--- a/src/main/resources/log4j2.xml
|
||||||
|
@ -18,8 +18,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ }
|
+ }
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
|
|
||||||
runtimeOnly("org.apache.maven:maven-resolver-provider:3.9.2")
|
runtimeOnly("org.apache.maven:maven-resolver-provider:3.8.5")
|
||||||
runtimeOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.9.10")
|
runtimeOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.7.3")
|
||||||
diff --git a/src/main/java/net/minecraft/network/CipherDecoder.java b/src/main/java/net/minecraft/network/CipherDecoder.java
|
diff --git a/src/main/java/net/minecraft/network/CipherDecoder.java b/src/main/java/net/minecraft/network/CipherDecoder.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/net/minecraft/network/CipherDecoder.java
|
--- a/src/main/java/net/minecraft/network/CipherDecoder.java
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit be1f33449ea205e494a7bcf2e9322319c6166204
|
Subproject commit 0c5d870919854258f5f51530a66d839fba20e288
|
@ -1 +1 @@
|
|||||||
Subproject commit 3b557627cd8274a4a2b16375886c492964db38eb
|
Subproject commit b6b514b7ec49531dc334c4e7bfee2569cfe33398
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren