From 48e94e8c8966c36322b5dd59344d5283bee3243e Mon Sep 17 00:00:00 2001 From: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com> Date: Sat, 7 Jun 2025 23:52:09 +0200 Subject: [PATCH] fix sponge absorb resetting block entity data of waterlogged blocks alternative to https://github.com/PaperMC/Paper/commit/320f25cb04f183c18c16595100897622c88ce073, this commit has the side effect of not including the waterlogged block into the block list for the later event. Generally this logic is fragile and should be handled by the BlockStateListPopulator in the future. --- .../java/io/papermc/paper/datacomponent/item/Equippable.java | 2 +- .../net/minecraft/world/level/block/SpongeBlock.java.patch | 2 +- test-plugin/build.gradle.kts | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/paper-api/src/main/java/io/papermc/paper/datacomponent/item/Equippable.java b/paper-api/src/main/java/io/papermc/paper/datacomponent/item/Equippable.java index dbb21d7baa..570ed9d28a 100644 --- a/paper-api/src/main/java/io/papermc/paper/datacomponent/item/Equippable.java +++ b/paper-api/src/main/java/io/papermc/paper/datacomponent/item/Equippable.java @@ -107,7 +107,7 @@ public interface Equippable extends BuildableDataComponent