Clearing offhand seems to work even better for allays

This commit is contained in:
fullwall 2023-02-16 00:10:55 +08:00
parent a09a54d4da
commit 31193735f1

View File

@ -164,6 +164,7 @@ public class AllayController extends MobEntityController {
Bukkit.getScheduler().scheduleSyncDelayedTask(CitizensAPI.getPlugin(), () -> {
NMSImpl.sendPacketNearby(null, getBukkitEntity().getLocation(),
new ClientboundSetEquipmentPacket(getId(), Lists.newArrayList(
Pair.of(EquipmentSlot.OFFHAND, this.getItemInHand(InteractionHand.OFF_HAND)),
Pair.of(EquipmentSlot.MAINHAND, this.getItemInHand(InteractionHand.MAIN_HAND)))));
});
return InteractionResult.FAIL;