-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for fake players before sending hotbar message (#405)
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0d0d30d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Caedis FakePlayer are extends from EntityPlayerMP, that commit will nothing changed. You need to check for FakePlayer like this: https://github.com/gamerforEA/EventHelper/blob/1.7.10/src/main/java/com/gamerforea/eventhelper/util/FastUtils.java#L84-L97
0d0d30d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That wouldn't work as the fake player that this is guarding against does not extend EntityPlayerMP or FakePlayer. (Or rather it would work the exact same)
It isn't necessary to exclude normal FakePlayers in this instance and this check is sufficient.