mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 21:19:00 +01:00
fix: immutable set of set oopsie
This commit is contained in:
parent
1dd0854b16
commit
a40e571876
@ -50,7 +50,7 @@ index 85527fa85fa2d172ec7f142ce042c87bd2533029..4dd001d1ec9e178f348753fc08991455
|
||||
return this.stateUpdatingResumesAt;
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftVault.java b/src/main/java/org/bukkit/craftbukkit/block/CraftVault.java
|
||||
index bfee498287c8358cbc8c9c2b7289d861cb90f0ad..b44d05f3803fb24d37c2450f2f2313483a1ba278 100644
|
||||
index bfee498287c8358cbc8c9c2b7289d861cb90f0ad..1d437f6bc11dfb0505607d5ecf0cb31766177ef1 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/block/CraftVault.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/block/CraftVault.java
|
||||
@@ -1,9 +1,25 @@
|
||||
@ -166,7 +166,7 @@ index bfee498287c8358cbc8c9c2b7289d861cb90f0ad..b44d05f3803fb24d37c2450f2f231348
|
||||
+
|
||||
+ @Override
|
||||
+ public Set<UUID> getRewardedPlayerUUIDs() {
|
||||
+ return ImmutableSet.of(this.getTileEntity().getServerData().getRewardedPlayers());
|
||||
+ return ImmutableSet.copyOf(this.getTileEntity().getServerData().getRewardedPlayers());
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
@ -213,7 +213,7 @@ index bfee498287c8358cbc8c9c2b7289d861cb90f0ad..b44d05f3803fb24d37c2450f2f231348
|
||||
+
|
||||
+ @Override
|
||||
+ public List<ItemStack> getItemsToEject() {
|
||||
+ return this.getTileEntity().getServerData().getItemsToEject().stream().map(i -> i.asBukkitCopy()).toList();
|
||||
+ return this.getTileEntity().getServerData().getItemsToEject().stream().map(net.minecraft.world.item.ItemStack::asBukkitCopy).toList();
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
|
Loading…
Reference in New Issue
Block a user