File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
java/com/azortis/protocolvanish/bukkit/visibility Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,7 @@ private void clearVanishedFrom(Player player) {
251
251
* @return The player instance, null if not found.
252
252
*/
253
253
public Player getPlayerFromEntityId (int entityId , World world ) {
254
+ if (entityId < 0 )return null ;
254
255
Entity entity = ProtocolLibrary .getProtocolManager ().getEntityFromID (world , entityId );
255
256
256
257
if (entity instanceof Player ) {
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ main: com.azortis.protocolvanish.bukkit.ProtocolVanish
4
4
version : 1.0
5
5
api-version : 1.15
6
6
loadbefore : [Essentials]
7
- depend : [ProtocolLib, PlaceholderAPI]
7
+ depend : [ProtocolLib, PlaceholderAPI]
8
+ softdepend : [Essentials]
You can’t perform that action at this time.
0 commit comments