X-Lomir Posted September 13, 2022 Share Posted September 13, 2022 I know AttackEntityEvent fires 2 times, 1 for each hand. Is there a way to understand which hand the event is currently being fired for? Quote Link to comment Share on other sites More sharing options...
warjort Posted September 13, 2022 Share Posted September 13, 2022 Attacks are always with the main hand. I think you will find the event is called twice because it is called on both the client and the server. You need to check event.getEntity().level.isClientSide to make sure you are on the correct logical side for what you are trying to do. Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post. Link to comment Share on other sites More sharing options...
X-Lomir Posted September 14, 2022 Author Share Posted September 14, 2022 In the end I was, by mistake, calling a method twice. I had already checked for the logical side, but the fact that the method was being called 2 times made me wonder. Thanks to your comment I realized my mistake, thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.