SPIGOT-5940: EntityChangeBlockEvent is not called for villager emptying composter
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -9,6 +9,15 @@
|
||||
Optional<GlobalPos> optional = entityvillager.getBehaviorController().getMemory(MemoryModuleType.JOB_SITE);
|
||||
|
||||
if (optional.isPresent()) {
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
private void a(WorldServer worldserver, EntityVillager entityvillager, GlobalPos globalpos, IBlockData iblockdata) {
|
||||
if ((Integer) iblockdata.get(BlockComposter.a) == 8) {
|
||||
- iblockdata = BlockComposter.d(iblockdata, (World) worldserver, globalpos.getBlockPosition());
|
||||
+ iblockdata = BlockComposter.d(iblockdata, (World) worldserver, globalpos.getBlockPosition(), entityvillager); // CraftBukkit
|
||||
}
|
||||
|
||||
int i = 20;
|
||||
@@ -52,7 +52,7 @@
|
||||
i -= k1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user