Support lava absorbant sponge (fixes #1852)

This commit is contained in:
Lucas Nicodemus 2020-05-22 23:22:48 -07:00
parent dbc4bd4747
commit a457e8c9ee
No known key found for this signature in database
GPG key ID: A07BD9023D1664DB
3 changed files with 33 additions and 16 deletions

View file

@ -1129,10 +1129,21 @@ namespace TShockAPI
/// </summary>
public byte Amount { get; set; }
/// <summary>
/// Type of Liquid: 0=water, 1=lave, 2=honey
/// Type of Liquid: 0=water, 1=lava, 2=honey
/// </summary>
public byte Type { get; set; }
public LiquidType Type { get; set; }
}
/// <summary>
/// LiquidType - supported liquid types
/// </summary>
public enum LiquidType : byte
{
Water = 0,
Lava = 1,
Honey = 2
}
/// <summary>
/// LiquidSet - When ever a liquid is set
/// </summary>
@ -1149,7 +1160,7 @@ namespace TShockAPI
TileX = tilex,
TileY = tiley,
Amount = amount,
Type = type,
Type = (LiquidType) type,
};
LiquidSet.Invoke(null, args);
return args.Handled;