Closed plebes closed 9 years ago
I will have this reviewed, but if its right good job.
On Fri, May 29, 2015 at 10:11 PM plebes notifications@github.com wrote:
The main RealisticBiomes class was implementing Listener, and registering itself as a listener, but it doesn't actually have listening events that it
handles. The code seems superfluous, unless I missed something.
You can view, comment on, or merge this pull request online at:
https://github.com/Civcraft/RealisticBiomes/pull/17 Commit Summary
- Main class should not be a listener. Removed unneeded code.
File Changes
- M src/com/untamedears/realisticbiomes/RealisticBiomes.java https://github.com/Civcraft/RealisticBiomes/pull/17/files#diff-0 (7)
Patch Links:
- https://github.com/Civcraft/RealisticBiomes/pull/17.patch
- https://github.com/Civcraft/RealisticBiomes/pull/17.diff
— Reply to this email directly or view it on GitHub https://github.com/Civcraft/RealisticBiomes/pull/17.
good catch
Not seeing any indication that the main plugin needed to be a listener. Looks clean to me. Likely was cruft left from first draft ; given presence of the "growAndPersistBlock" function in main RB class, I'd bet that was the original listener decorated function. When the decoration was moved to PlayerListener, the interface probably just wasn't removed from main RB class.
Good catch, should be safe to merge.
hey @plebes are you on the Civcraft form? I would like to add you to the developers group
The main RealisticBiomes class was implementing Listener, and registering itself as a listener, but it doesn't actually have listening events that it handles. The code seems superfluous, unless I missed something.