mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-25 12:15:53 +01:00
Clearing offhand seems to work even better for allays
This commit is contained in:
parent
a09a54d4da
commit
31193735f1
@ -164,6 +164,7 @@ public class AllayController extends MobEntityController {
|
|||||||
Bukkit.getScheduler().scheduleSyncDelayedTask(CitizensAPI.getPlugin(), () -> {
|
Bukkit.getScheduler().scheduleSyncDelayedTask(CitizensAPI.getPlugin(), () -> {
|
||||||
NMSImpl.sendPacketNearby(null, getBukkitEntity().getLocation(),
|
NMSImpl.sendPacketNearby(null, getBukkitEntity().getLocation(),
|
||||||
new ClientboundSetEquipmentPacket(getId(), Lists.newArrayList(
|
new ClientboundSetEquipmentPacket(getId(), Lists.newArrayList(
|
||||||
|
Pair.of(EquipmentSlot.OFFHAND, this.getItemInHand(InteractionHand.OFF_HAND)),
|
||||||
Pair.of(EquipmentSlot.MAINHAND, this.getItemInHand(InteractionHand.MAIN_HAND)))));
|
Pair.of(EquipmentSlot.MAINHAND, this.getItemInHand(InteractionHand.MAIN_HAND)))));
|
||||||
});
|
});
|
||||||
return InteractionResult.FAIL;
|
return InteractionResult.FAIL;
|
||||||
|
Loading…
Reference in New Issue
Block a user