Backport to 1.21.1: Override context-aware getPlaceSound in SolidBucketItem (#3375)
Some checks failed
Release / release (push) Has been cancelled

Co-authored-by: sciwhiz12 <21304337+sciwhiz12@users.noreply.github.com>
This commit is contained in:
neoforged-automation[bot] 2026-08-01 21:58:36 +08:00 committed by GitHub
parent 89f705da9e
commit d8d64b44bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,14 @@
--- a/net/minecraft/world/item/SolidBucketItem.java
+++ b/net/minecraft/world/item/SolidBucketItem.java
@@ -33,6 +_,11 @@
}
@Override
+ protected SoundEvent getPlaceSound(BlockState state, Level level, BlockPos pos, Player entity) {
+ return this.getPlaceSound(state);
+ }
+
+ @Override
public String getDescriptionId() {
return this.getOrCreateDescriptionId();
}