Airship Shadow Only on Land

I have this world where most of the evironment is sky, and there are floating islands. The problem I have is that the "airship" I use in this world casts a shadow not only on land, but also on the sky. I would need some advice or script to overcome the problem so that the shadow of the airship would be visible only on the land terrain. Perhaps this could be done with terrain tags somehow?
The Scripts forum is for posting scripts you have written and wish to share with the community.

Moved to: RGSS3 Script Requests
Good news: terrain_tag is a method for characters (including $game_player) that can grab the id of the terrain.

Anyway, All graphical stuff is handled under Sprites, and airship's shadow is under Spriteset_Map. Here's a snippet for shadows:

Code:
class Spriteset_Map
  def update_shadow  
    #Put the terrain-tag numbers you want in this array to remove shadows.
    shadowless = [1, 2]

    airship = $game_map.airship
    @shadow_sprite.x = airship.screen_x
    @shadow_sprite.y = airship.screen_y + airship.altitude
    if shadowless.include? airship.terrain_tag
      @shadow_sprite.opacity = 0
    else
      @shadow_sprite.opacity = airship.altitude * 8
    end
    @shadow_sprite.update
  end
end

I just tested this (marking 1 over water) and managed to have shadow over land and no shadow over water.
@Harosata
Edit: I got it working! Thank you so much for this great snippet!

Original thread: https://forums.rpgmakerweb.com/threads/airship-shadow-only-on-land.76712/