Fix for EnhancedCore issue: https://github.com/ShadedDimension/enhanced-core/commit/6d05b64121024fdffe9b01c38e592d579889990a