Epic Fight

Epic Fight

13M Downloads

[Bug]: The game's performance can be significantly affected when battleAutoSwitchItems&miningAutoSwitchItems lists contain too many entries.

Kasualix opened this issue ยท 1 comments

commented

Have you checked if a similar issue is already reported by someone else?

  • I checked there are no similar issues have been reported.

Have you read the support policy?

  • I read it and I accept the policy.

Are you using the latest Epic Fight and recommended Forge version?

  • I checked I'm using latest Epic Fight and recommended Forge version.

Is this issue related to mod incompatibility?

  • This is a mod compatibility issue and I'm aware of the problem.

The mod

None

Minecraft Version

1.20.1

What happened?

Unfortunately you can only specify one minecraft version, but it does exist in 1.16.5 ~ 1.20.1.
Title tells the problem. To be specific: https://github.com/Yesssssman/epicfightmod/blob/1.18.2/src/main/java/yesman/epicfight/client/world/capabilites/entitypatch/player/LocalPlayerPatch.java#L215

Possible solution: Pre-initialize and cache the result
Similar List#contains issue: Mrbysco/AgeingSpawners#5

commented

Image_1697911356900
some details