Update customGenericEventHandler.java

Update for Betterdungeons fix