Melee Attack will now listen to the Swing Event

This commit is contained in:
Kam committed 2024-02-12 02:09:23 -05:00
1 parent 7bdb4aa806
commit a4d0d9a876
3 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -34,6 +34,6 @@
* For more details, see https://docs.gradle.org/8.0.1/userguide/java_library_plugin.html#sec:java_library_configurations_graph
*/
dependencies {
implementation rfg.deobf(name: "CustomNPC-Plus-1.9-beta5")
implementation rfg.deobf(name: "CustomNPC-Plus-1.9-beta6")
implementation name: "geckolib-forge-1.7.10-3.0.33"
}
@@ -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));
}