BuildCraft/BuildCraft — pull request #2002 by bdew (2014-09-01 12:51:33+00:00)
Title: ClassCastException in PowerHandler (IBatteryObject vs BatteryObject)

The problem is [HERE](https://github.com/BuildCraft/BuildCraft/blob/6.1.x/api/buildcraft/api/power/PowerHandler.java#L153).

Besides being obviously type-unsafe, this makes no sense to me whatsoever. I'm under the impression that IBatteryObject is there to allow custom battery objects to be implemented, why is it forced to use the default BatteryObject implementation?

Added: I changed the cast to use the interface and it seems to not break anything. I can PR this if wanted but it's literally a 1-character change.