mirror of
https://github.com/KAMKEEL/CustomNPC-Gecko-Addon.git
synced 2026-11-22 06:12:20 +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
+1
-1
@@ -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"
|
||||
}
|
||||
Binary file not shown.
@@ -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