mirror of
https://github.com/KAMKEEL/CustomNPC-Gecko-Addon.git
synced 2026-11-18 19:39:08 +00:00
Melee Attack will now listen to the Swing Event
This commit is contained in:
1 parent
7bdb4aa806
commit
a4d0d9a876
3 files changed
+2
-2
No files matched your search
@@ -9,7 +9,7 @@ import noppes.npcs.scripted.event.NpcEvent;
|
||||
|
||||
public class EventHandler {
|
||||
@SubscribeEvent
|
||||
public void onNpcMeleeAttack(NpcEvent.MeleeAttackEvent event){
|
||||
public void onNpcMeleeAttack(NpcEvent.SwingEvent event){
|
||||
NetworkHandler.sendToAll(new CPacketSyncAutoAnim((EntityNPCInterface) event.npc.getMCEntity(), EnumSyncAutoAnim.MELEE_ATTACK));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user