mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-28 10:12:15 +01:00
Check correct bucket while milking cows.
Fixes WORLDGUARD-3508.
This commit is contained in:
parent
5ff8b37ae8
commit
a426d2a42c
@ -451,7 +451,7 @@ public void onPlayerBucketFill(PlayerBucketFillEvent event) {
|
||||
boolean allowed = false;
|
||||
|
||||
// Milk buckets can't be emptied as of writing
|
||||
if (event.getBucket() == Material.MILK_BUCKET) {
|
||||
if (event.getItemStack().getType() == Material.MILK_BUCKET) {
|
||||
allowed = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user