private static bool OnLiquidSet(int tilex, int tiley, byte amount, byte type) { if (LiquidSet == null) return false; var args = new LiquidSetEventArgs { TileX = tilex, TileY = tiley, Amount = amount, Type = type, }; LiquidSet.Invoke(null, args); return args.Handled; }
private static bool OnLiquidSet(int tilex, int tiley, byte liquid, bool lava) { if (LiquidSet == null) return false; var args = new LiquidSetEventArgs { TileX = tilex, TileY = tiley, Liquid = liquid, Lava = lava, }; LiquidSet.Invoke(null, args); return args.Handled; }