[SPIGOT-5940] EntityChangeBlockEvent is not getting called for villager emptying composter Created: 04/Jul/20  Updated: 05/Jul/20  Resolved: 04/Jul/20

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: no thanks Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: 1.16.1

Version: 1.16.1-R0.1-SNAPSHOT
Guidelines Read: Yes

 Description   

Spigot only calls the event if the old stage is below 7, which means the event isn't getting called when villagers empty the composter. My assumption is, that when villagers call the function 

a(IBlockData iblockdata, WorldServer worldserver, ItemStack itemstack, BlockPosition blockposition, EntityVillager entity)

and it returns the old state, they maybe call another function? 

Edit: i did some more digging, the villager emptying the composter happens in

BehaviourWorkComposter

in the function

a(WorldServer worldserver, EntityVillager entityvillager, GlobalPos globalpos, IBlockData iblockdata)

the first if statement tests if the composter is full when the villager want to "work" with the composter and empties it in that case. 

Would be great if someone could add an event call in there



 Comments   
Comment by no thanks [ 05/Jul/20 ]

Thanks a lot!

Comment by md_5 [ 05/Jul/20 ]

I already reopened and fixed it

Comment by no thanks [ 05/Jul/20 ]

It's not a duplicate, i created the other Issue and this is me realising that it wasn't implemented correctly

Comment by Black Hole [ 04/Jul/20 ]

Duplicate of SPIGOT-5889

Generated at Tue Apr 08 02:45:40 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.