refactor: null check is not necessary, we have instanceof

This commit is contained in:
Breno A. 2024-06-09 10:02:56 -03:00
parent 45bf5edb13
commit 809009f96c

View File

@ -16,7 +16,7 @@ public class HandlerSceneEntityDrownReq extends PacketHandler {
GameEntity entity = session.getPlayer().getScene().getEntityById(req.getEntityId());
if (entity == null || !(entity instanceof EntityMonster || entity instanceof EntityAvatar)) {
if (!(entity instanceof EntityMonster || entity instanceof EntityAvatar)) {
return;
}